您的位置:首页 > 其它

获取鼠标点窗口句柄

2007-08-02 11:44 253 查看
/* The GetCursorPos function retrieves the cursor's position, in screen coordinates. */
BOOL GetCursorPos(
LPPOINT &point
);

/* The WindowFromPoint function retrieves a handle to the window that contains the specified point. */
HWND WindowFromPoint(
POINT point
);

/*The GetWindow function retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window. */
HWND GetWindow(
HWND hWnd,
UINT uCmd //通过把uCmd代码设置为GW_HWNDNEXT来获取兄弟窗口的句柄
);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: