/* 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来获取兄弟窗口的句柄
);
本文介绍了Windows API中用于获取鼠标位置的GetCursorPos函数,用于查找包含指定点的窗口的WindowFromPoint函数,以及用于根据特定关系检索窗口句柄的GetWindow函数。
821

被折叠的 条评论
为什么被折叠?



