SetLayeredWindowAttributes函数
来源:互联网 发布:java二进制转字符串 编辑:程序博客网 时间:2024/06/06 04:18
SetLayeredWindowAttributes函数:
hwnd是透明窗体的句柄,
crKey为颜色值,
bAlpha是透明度,取值范围是[0,255],
dwFlags是透明方式,可以取两个值:
当取值为LWA_ALPHA时,crKey参数无效,bAlpha参数有效;
当取值为LWA_COLORKEY时,bAlpha参数有效而窗体中的所有颜色为crKey的地方将变为透明。
LWA_ALPHA = 0x2
LWA_COLORKEY=0x1
要使使窗体拥有透明效果,首先要有WS_EX_LAYERED扩展属性
(旧的sdk没有定义这个属性,所以可以直接指定为0x80000).
WS_EX_LAYERED = 0x80000
详细见:
http://dev.csdn.net/Develop/article/18/18774.shtm
- SetLayeredWindowAttributes函数
- SetLayeredWindowAttributes函数:
- SetLayeredWindowAttributes函数的使用.
- USER32.DLL SetLayeredWindowAttributes函数
- 设置窗口透明度 SetLayeredWindowAttributes函数
- 使用SetLayeredWindowAttributes函数设置窗口透明色与透明度
- xp下实现窗体透明特效SetLayeredWindowAttributes函数
- xp下实现窗体透明特效SetLayeredWindowAttributes函数
- xp下实现窗体透明特效SetLayeredWindowAttributes函数
- SetLayeredWindowAttributes 函数的使用方法,对话框透明的方法
- VC++ SetLayeredWindowAttributes
- (转)xp下实现窗体透明特效/异形窗口SetLayeredWindowAttributes函数
- SetLayeredWindowAttributes参数错误
- UpdateLayeredWindow和SetLayeredWindowAttributes
- WinAPI透明窗体SetLayeredWindowAttributes
- 透明化窗口SetLayeredWindowAttributes
- UpdateLayeredWindow和SetLayeredWindowAttributes
- 透明化窗口SetLayeredWindowAttributes
- Windows下BMP文件的读取及显示(转)
- 超越浏览器 迎接Smart Client
- 短暂的一天。
- 深度剖析:IT人为什么难拿高薪?(转载)
- 《程序设计语言-实践之路》是一本特别的书
- SetLayeredWindowAttributes函数
- 中国黑客组织与人物名单完全档案(转载)
- "Go big or go home" Borland 计划放弃IDE业务
- 到母校做演讲~
- Borland要把它的IDE部门卖了
- 我的计算机人生
- 摩尔斯电码a-z
- 卸载远线程中被注入的dll
- PowerBuilder数据窗口保存为Excel表