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


CWindow::GetClientRect

Получает координаты клиентской области.

BOOL GetClientRect( 
   LPRECT lpRect  
) const throw();

Заметки

См. раздел GetClientRect в 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::GetWindowRect

RECT