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


CWnd::GetWindowRect

Copies the dimensions of the bounding rectangle of the CWnd object to the structure pointed to by lpRect.

void GetWindowRect(
   LPRECT lpRect 
) const;

Параметры

  • lpRect
    Points to a CRect object or a RECT structure that will receive the screen coordinates of the upper-left and lower-right corners.

Заметки

The dimensions are given in screen coordinates relative to the upper-left corner of the display screen. The dimensions of the caption, border, and scroll bars, if present, are included.

Требования

Header: afxwin.h

См. также

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

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetClientRect

CWnd::MoveWindow

CWnd::SetWindowPos

GetWindowRect