signkerop.blogg.se

Cool icons transparent messages
Cool icons transparent messages













  1. #Cool icons transparent messages update
  2. #Cool icons transparent messages code

#Cool icons transparent messages update

ListView_SetTextBkColor(hWnd, 0xffffffff) // LVM_SETTEXTBKCOLOR // add the 'desktop' to the update region ListView_GetTextBkColor(hWnd) // LVM_GETTEXTBKCOLOR if ( 0xffffffff != colorBackground)

#Cool icons transparent messages code

A check is done on the current background color to prevent an unnecessary change.Ĭopy Code // if the window was found. Once the correct window handle of the listview control has been obtained, the background color can be changed. This window, in turn, has a parent (click the handle) belonging to the Progman class and has a Program Manager caption. The listview control has a parent (click the handle) belonging to the SHELLDLL_DefView class. In the ensuing Window Properties dialog, click the Windows tab. Notice that the window has no caption and the class is SysListView32. When you start the utility, open the Find Window dialog and select the Desktop, with the little crosshair. If you've never used Spy++ that ships with Visual Studio, this is a very good project to cut your teeth on. HWnd = FindWindowEx(hWnd, NULL, " SysListView32", NULL) HWnd = FindWindowEx(hWnd, NULL, " SHELLDLL_DefView", NULL) start with FindWindow() to get the initial hWnd if (NULL != hWnd) I could, however, use it to enumerate all child windows of the desktop, stopping when the listview window was found. My first thought was to use GetDesktopWindow() to find the listview window, but the handle returned was not what I expected. One is a bit cleaner than the other, but I'll show both just for comparison purposes. There are two ways of finding the correct window. The first thing to do is find the listview window that owns the desktop icons. Curiosity got the best of me and I wanted to know just how much, or how little in this case, code was involved in accomplishing this task. I've used this utility on nearly all of the machines I've worked on and have never given it a second thought. What struck my fancy was the author's (Jay Guerette) comment about similar utilities asking for money considering how much time and code was involved. It was cool and made the desktop a whole lot prettier. Several years ago, I downloaded a program called TransparentW that would make the text background of the desktop icons transparent.















Cool icons transparent messages