Welcome![Sign In][Sign Up]
Location:
Search - SmartWindow read

Search list

[GUI Develop智能ABC窗口

Description: 高级顶层窗口是一种无标题栏、菜单、工具条的一种常居顶层的窗口,最常见的例子就是输入法窗口,比如智能ABC窗口。这类窗口的特点除了上边所说的,最重要的就是窗口移动。普通窗口移动是通过标题栏由系统自动实现的,对于这类窗口就无法依靠系统了,需要手工实现。实现的方法有两种: 手工处理WM_MOVE、WM_LBUTTONUP消息,并根据鼠标的移动自己实现窗口移动过程中的绘制; 在WM_MOVE消息处理函数中通过向自己发送参数wParam为HTCAPTION lParam为鼠标位置的WM_NCLBUTTONDOWN消息实现窗口移动,此时窗口移动过程的绘制由系统实现。 显然,后者较前者简单。本文采用后者。-top window is a non-title bar, menus, tools of a regular Habitat top of the window, the most common example is the input window, such as smart window ABC. This window features in addition to the upside, the most important thing is moving the window. General Mobile through the window title bar automatically by the system for such window will not be able to rely on the system, and will need to achieve manually. Implementation of two ways : manual processing WM_MOVE, WM_LBUTTONUP news, and in accordance with the movement of the mouse to achieve their mobile window in the process of drawing; In WM_MOVE message processing function to send itself through the parameters wParam HTCAPTION lParam for the mouse to position the news WM_NCLBUTTONDOWN windows Mobile to achieve at this time window moving
Platform: | Size: 15360 | Author: 张事实 | Hits:

CodeBus www.codebus.net