桌面图表透明的例子。请问 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()
#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()
解决方案 »
- GetCurrentTime时间限制问题!
- 影片截图问题,急,救命啊!!!!!!!!
- 一个vc写的通信dll在vb中调用,debug版本运行很正常,release版本为什么出错?
- 高手请进,利用com动态合并菜单
- 为什么没人答?命不好啊!!!
- 软件加密怎么实现,这是我毕业设计题,大家指点一下
- 如何在状态条中显示帮助信息同时做出像VC IDE那样的可移动的menu bar?(虽然分不多(没办法只有这些了),但希望参与!)
- 同一个文件被编译了两次
- 求助!!!CxImage图像类库Save保存png图片时有时不成功?为何?
- 摄像头中拍摄的两帧图像怎么判断前一帧图像中的一个物体对应后一帧图像中的一个物体
- VC++ 如何显示SVG图?
- DIB图显示的问题,大家进来看一看!
如WM_PAINT实际上也是一个32BIT的数。
可他具体代表什么意思呢?我也知道一定和改变颜色有关,
那里能查到这样的消息的定义》