文件名称:Project1
-
所属分类:
- 标签属性:
- 上传时间:2014-05-12
-
文件大小:3.49kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
使用无窗口透明控件,好处是控件不是从窗口类继承而来的,可以节省一些内存资源,难点是鼠标控制和坐标计算,缺点是无法直接响应键盘事件。而且,需要注意的是,在Paint事件里,坐标是从(0,0)开始的,而在其它地方,坐标是相对于容器的。缺点是设计时,无法用鼠标点选控件(只能用键盘移动),微软公司也在MSDN里说了这是一个BUG,但至今未解决。
好了,废话俺不说了,打开VB6,新建一个“标准 EXE”,然后添加一个用户控件,把控件的BackStyle属性设置为“透明”,把Windowless属性设置为“True”,再把俺的代码复制过去,一个美观大方的透明浮动按钮便完成了。用户还可以设置控件的Caption属性和Picture属性进一步美化。如有不解之处,可与俺联系:-Use windowless transparent control, the advantage is control is not inherited from the window class, you can save some memory resources, the difficulty is the mouse control and coordinate calculation, the disadvantage is not directly respond to keyboard events. Also, note that in the Paint event, the coordinates are from (0,0), while in other places, the coordinates are relative to the container. The disadvantage is that the design, you can not use the mouse to click on the controls (only use the keyboard to move), MSDN, Microsoft also says that this is a BUG, but has yet to be resolved.
Well, I do not say nonsense, open VB6, create a new "Standard EXE", and then add a user control, the control s BackStyle property is set to "transparent", the Windowless property to "True", then I code copy the past, a nice transparent floating button is complete. Users can also set the Caption property and further beautify the Picture property of the control. If incomprehension, and I can cont
好了,废话俺不说了,打开VB6,新建一个“标准 EXE”,然后添加一个用户控件,把控件的BackStyle属性设置为“透明”,把Windowless属性设置为“True”,再把俺的代码复制过去,一个美观大方的透明浮动按钮便完成了。用户还可以设置控件的Caption属性和Picture属性进一步美化。如有不解之处,可与俺联系:-Use windowless transparent control, the advantage is control is not inherited from the window class, you can save some memory resources, the difficulty is the mouse control and coordinate calculation, the disadvantage is not directly respond to keyboard events. Also, note that in the Paint event, the coordinates are from (0,0), while in other places, the coordinates are relative to the container. The disadvantage is that the design, you can not use the mouse to click on the controls (only use the keyboard to move), MSDN, Microsoft also says that this is a BUG, but has yet to be resolved.
Well, I do not say nonsense, open VB6, create a new "Standard EXE", and then add a user control, the control s BackStyle property is set to "transparent", the Windowless property to "True", then I code copy the past, a nice transparent floating button is complete. Users can also set the Caption property and further beautify the Picture property of the control. If incomprehension, and I can cont
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Form1.frm
MSSCCPRJ.SCC
Project1.vbp
MSSCCPRJ.SCC
Project1.vbp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.