HWND WindowFromPoint(
POINT Point // structure with point
);
函数功能:该函数获得包含指定点的窗口的句柄。
BOOL GetCursorPos(
LPPOINT lpPoint // address of structure for cursor position
);
POINT MousePoint;
GetCursorPos(&MousePoint);
HANDLE hWindow = WindowFromPoint(MousePoint);
本文介绍如何使用GetCursorPos函数获取鼠标当前位置,并通过WindowFromPoint函数找到包含该点的窗口句柄。
908

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



