GetClientRect & GetWindowRect
CWnd::GetClientRect(클라이언트 영역의 크기)
void GetClientRect( LPRECT lpRect ) const;
Parameters
lpRect
Points to a RECT structure or a CRect object to receive the client coordinates. The left and top members will be 0. The right and bottom members will contain the width and height of the window.
Remarks
Copies the client coordinates of the CWnd client area into the structure pointed to by lpRect. The client coordinates specify the upper-left and lower-right corners of the client area. Since client coordinates are relative to the upper-left corners of the CWnd client area, the coordinates of the upper-left corner are (0,0).
CWnd Overview | Class Members | Hierarchy Chart
See Also CWnd::GetWindowRect,
::GetClientRect
CWnd::GetWindowRect
void GetWindowRect( LPRECT lpRect ) const;
Parameters
lpRect
Points to a CRect object or a RECT structure that will receive the screen coordinates of the upper-left and lower-right corners.
Remarks
Copies the dimensions of the bounding rectangle of the CWnd object to the structure pointed to by lpRect. 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.
CWnd Overview | Class Members | Hierarchy Chart
See Also CWnd::GetClientRect, CWnd::MoveWindow, CWnd::SetWindowPos, ::GetWindowRect