...窗口与句柄 窗口是是屏幕上一块矩形区域,是Windows应用程序与用户进行交互的接口。窗口分为客户区和非客户区。 在Windows应用程序中,窗口是通过窗口句柄(HWND)来标识的,要对某个窗口进行操作,首先就要得到这个窗口的句柄。
基于7个网页-相关网页
hwnd As Long 窗口句柄 ; 消息接收窗口的句柄
HWND hwnd 窗口句柄 ; 消息发送的窗口句柄 ; 接收托盘图标通知消息的窗口句柄
HWND hwndItem 父窗口句柄或菜单句柄
IntPtr hWnd 目标窗体句柄
HWND hDlg 对话框句柄
HWND hPlayWnd 播放窗口的句柄
HWND gameh 游戏句柄
HWND hMainWnd 主窗口句柄
HWND hWndMain 窗口句柄
The hWnd parameter should not identify a child window, such as a control in a dialog box.
这个句柄参数不能作为一个子窗口,正如对话框里的控件。
If you create a message box while a dialog box is present, use a handle to the dialog box as the hWnd parameter.
如果在一个对话框出现时你创建一个消息框,使用对话框的句柄作为参数。
The host of a custom control is the HWND of the control itself, not the application window or any other window that might contain groups of top-level controls.
自订控制项的主机是控制项本身的HWND,而非是应用程序视窗或任何其他可能包含最上层控制项群组的视窗。
应用推荐