CWindow::GetClientRect
擷取工作區座標。
BOOL GetClientRect(
LPRECT lpRect
) const throw();
備註
請參閱在 Windows SDK的 GetClientRect 。
範例
//The following example attaches an HWND to the CWindow object and
//calls CWindow::GetClientRect() to get the client area rectangle
//of the window
CWindow myWindow;
myWindow.Attach(hWnd);
RECT rc;
myWindow.GetClientRect(&rc);
需求
Header: atlwin.h