Compartir a través de


CWindow::GetClientRect

Retrieves the coordinates of the client area.

BOOL GetClientRect( 
   LPRECT lpRect  
) const throw();

Remarks

See GetClientRect in the Windows SDK.

Example

//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);

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetWindowRect

RECT