POINT pt;
GetCursorPos(&pt);
// 得到鼠标下面的窗口句柄
HWND hWnd=WindowFromPoint(pt);
// 得到鼠标所在的子窗口句柄
HWND hChild=ChildWindowFromPoint(hWnd,pt);
posted on 2011-02-15 11:14  °ι 、曲 终  阅读(682)  评论(0编辑  收藏  举报