文件名称:Transparent
-
所属分类:
- 标签属性:
- 上传时间:2013-05-11
-
文件大小:86.44kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
VB透明窗体代码
SetLayeredWindowAttributes me.hwnd, 0, 192, LWA_ALPHA
把窗体设置成半透明样式,第二个参数表示透明程度
取值范围0--255,为0时就是一个全透明的窗体了
第二种使用方法
SetLayeredWindowAttributes Me.hWnd, &H0, 0, LWA_COLORKEY
表明不显示窗体中的透明色
而第二个参数表示透明色为黑色,并且你可以用RGB函数来指定颜色值-VB transparent form the code the SetLayeredWindowAttributes Me.hwnd, 0, 192, LWA_ALPHA ' form set into a translucent style, the second parameter indicates the degree of transparency' ranges from 0- 255 to 0 is a fully transparent window to body second use the SetLayeredWindowAttributes is Me.hWnd & H0, 0, LWA_COLORKEY ' that is not displayed in the form of transparent color' and the second parameter indicates the transparent color is black, and you can use the RGB function to specify color values
SetLayeredWindowAttributes me.hwnd, 0, 192, LWA_ALPHA
把窗体设置成半透明样式,第二个参数表示透明程度
取值范围0--255,为0时就是一个全透明的窗体了
第二种使用方法
SetLayeredWindowAttributes Me.hWnd, &H0, 0, LWA_COLORKEY
表明不显示窗体中的透明色
而第二个参数表示透明色为黑色,并且你可以用RGB函数来指定颜色值-VB transparent form the code the SetLayeredWindowAttributes Me.hwnd, 0, 192, LWA_ALPHA ' form set into a translucent style, the second parameter indicates the degree of transparency' ranges from 0- 255 to 0 is a fully transparent window to body second use the SetLayeredWindowAttributes is Me.hWnd & H0, 0, LWA_COLORKEY ' that is not displayed in the form of transparent color' and the second parameter indicates the transparent color is black, and you can use the RGB function to specify color values
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Form1.frm
Module1.bas
MSSCCPRJ.SCC
Project1.vbp
Project1.vbw
Form1.frx
Module1.bas
MSSCCPRJ.SCC
Project1.vbp
Project1.vbw
Form1.frx
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
