桌面图表透明的例子。请问 SendMessage(hWnd, 0x1024, 0, 0x000000ff);中,0x1024什么意思?#include<windows.h>
#include <stdio.h>HWND GetDeskWnd()
{
HWND hWnd; hWnd = GetDesktopWindow(); 
if ((hWnd = FindWindowEx(hWnd, 0, "Progman", "Program Manager")) == 0) 
return NULL; if ((hWnd = FindWindowEx(hWnd, 0, "SHELLDLL_DefView", NULL)) == 0) 
return NULL; if ((hWnd = FindWindowEx(hWnd, 0, "SysListView32", NULL)) == 0) 
return NULL; 
return hWnd;
}int main(void) 

HWND hWnd; 
hWnd = GetDeskWnd(); 
if(hWnd)
    {// Change icon text attributes 
    SendMessage(hWnd, 0x1026, 0, 0xffffffff); // Turn background to transparent 
    SendMessage(hWnd, 0x1024, 0, 0x000000ff); // Turn foregound to white     InvalidateRect(hWnd, NULL, TRUE); // Repaint 
    }
return 0; 
} // main() 

解决方案 »

  1.   

    0x1024肯定是一个宏定义的消息,如:define   XXX_XXXXXX   0x1024
      

  2.   

    这是一个消息,
    如WM_PAINT实际上也是一个32BIT的数。
      

  3.   

    是,sendmessage的定义也能知道是个消息,
    可他具体代表什么意思呢?我也知道一定和改变颜色有关,
    那里能查到这样的消息的定义》
      

  4.   

    再有,SysListView32是桌面图表的类名称,Progman和SHELLDLL_DefView是什么类,为什么注销掉一个就不行了?
      

  5.   

    Window.h的定义中没有,也许是内部什么没有公开的消息