Поделиться через


CWindow::GetClientRect

Retrieves the coordinates of the client area.

BOOL GetClientRect(
   LPRECT lpRect 
) const throw();

Заметки

See GetClientRect in the Windows SDK.

Пример

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

См. также

Основные понятия

CWindow Class

CWindow Members

CWindow::GetWindowRect

RECT