CPoint pt ;
::GetCursorPos(&pt);
HWND hdl = ::WindowFromPoint(pt);
CWnd* pwnd = CWnd::FromHandle(hdl);
pwnd->ScreenToClient(&pt);
pwnd->SendMessage(WM_LBUTTONDBLCLK,0, MAKELONG(pt.x, pt.y));
向鼠标所在的窗体发送消息
最新推荐文章于 2023-08-22 21:56:50 发布