文件名称:实现窗体自动隐藏
介绍说明--下载内容来自于网络,使用问题请自行百度
实现窗体自动隐藏方法有多种,可以使用定时器,不断监视鼠标,当鼠标移动到窗体边缘时,显示窗体,当鼠标离开后隐藏窗体。也可以在鼠标收到WM_NCMOUSEMOVE或 WM_MOUSEMOVE(无边框窗体)时激活窗体,然后在窗体消息WM_ACTIVE中设置显示或隐藏,这种方法在窗体未失去焦点时不会隐藏。我在原本的设计中便使用这种方法,只是在设计时发现非主窗体不太合适,激活窗体时会出现两个键盘焦点,而且我所需要的焦点是虚假的,可能我的设计不当,那位朋友若能完美实现,不妨交流一下。-achieve automatic hidden forms There are different ways they can use timers, constant surveillance mouse, the mouse moved to the brink of the form, the form shown when the mouse left hidden forms. The mouse can also receive WM_NCMOUSEMOVE or WM_MOUSEMOVE (no window frame), activated forms, and then in the form set WM_ACTIVE news show or hide, in the form of this method has not lost its focus will not be hidden. In my original design will use this method, the design was found non-main forms not appropriate, will be activated when there Form 2 keyboard focus, and I need the focus is false, maybe I am a poorly designed and friends who can achieve perfection, it may be things about.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实现窗体自动隐藏.doc
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.