如何把当前窗口的rect变为屏幕的rect
问题如题目
[解决办法]
The ClientToScreen member function assumes that the given point or rectangle is in client coordinates.
Example
// resize dialog to client's size
void CAboutDlg::OnButton1()
{
CRect myRect;
GetClientRect(&myRect);
ClientToScreen(myRect);
MoveWindow(myRect.left, myRect.top,
myRect.Width(), myRect.Height());
}
[解决办法]
::MapWindowPoints(hWnd, NULL, (LPPOINT)&rcBound, sizeof (RECT) / sizeof (POINT));
[解决办法]