Chinaunix首页 | 论坛 | 博客
  • 博客访问: 16496993
  • 博文数量: 5645
  • 博客积分: 9880
  • 博客等级: 中将
  • 技术积分: 68081
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-28 13:35
文章分类

全部博文(5645)

文章存档

2008年(5645)

我的朋友

分类:

2008-04-28 20:52:37

下载本文示例代码
Module name : Transparent.cpp** Module description :* To make desktop icon text background transparent.** Project :** Target platform : Win32** Compiler & Library : Visual C 6.0** Author : Richard Shen** Creation date : 19 June, 1999* #include <windows.h>int main(void){HWND hWnd;hWnd = GetDesktopWindow();if ((hWnd = FindWindowEx(hWnd, 0, "Progman", "Program Manager")) == 0)return 1;if ((hWnd = FindWindowEx(hWnd, 0, "SHELLDLL_DefView", NULL)) == 0)return 1;if ((hWnd = FindWindowEx(hWnd, 0, "SysListView32", NULL)) == 0)return 1;// Change icon text attributesSendMessage(hWnd, 0x1026, 0, 0xffffffff); // Turn background to transparentSendMessage(hWnd, 0x1024, 0, 0x00ffffff); // Turn foregound to whiteInvalidateRect(hWnd, NULL, TRUE); // Repaintreturn 0;} // main() Module name : Transparent.cpp** Module description :* To make desktop icon text background transparent.** Project :** Target platform : Win32** Compiler & Library : Visual C 6.0** Author : Richard Shen** Creation date : 19 June, 1999* #include <windows.h>int main(void){HWND hWnd;hWnd = GetDesktopWindow();if ((hWnd = FindWindowEx(hWnd, 0, "Progman", "Program Manager")) == 0)return 1;if ((hWnd = FindWindowEx(hWnd, 0, "SHELLDLL_DefView", NULL)) == 0)return 1;if ((hWnd = FindWindowEx(hWnd, 0, "SysListView32", NULL)) == 0)return 1;// Change icon text attributesSendMessage(hWnd, 0x1026, 0, 0xffffffff); // Turn background to transparentSendMessage(hWnd, 0x1024, 0, 0x00ffffff); // Turn foregound to whiteInvalidateRect(hWnd, NULL, TRUE); // Repaintreturn 0;} // main() 下载本文示例代码


用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白用VC实现桌面文字背景透明摆脱黑白
阅读(238) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~