win32API
POINT point = { 20,50 }; HWND hWnd = GetSafeHwnd(); BOOL b = ::ScreenToClient(hWnd, &point);//屏幕坐标转换为客户区坐标 /* 参数1:HWND hWnd 窗口句柄 参数2:LPPOINT lpPoint 屏幕坐标点 函数成功后,保存转换后的坐标 返回值:如果函数调用成功,返回值为非零值,否则为零 */
MFC
标签:MFC,转换,hWnd,坐标,屏幕,ScreenToClient From: https://www.cnblogs.com/liming19680104/p/17351849.html