CWnd::GetWindowRect

複製 CWnd 物件週框的維度之結構的所指向的 lpRect。

void GetWindowRect(
   LPRECT lpRect 
) const;

參數

  • lpRect
    CRect 的點物件或將接收左上角和右下角的螢幕座標中的 的長度 結構。

備註

維度以螢幕座標來測量相對顯示螢幕的左上角。標題、框線和捲軸的維度,如果有的話,是包含的。

需求

Header: afxwin.h

請參閱

參考

CWnd 類別

階層架構圖

CWnd::GetClientRect

CWnd::MoveWindow

CWnd::SetWindowPos

GetWindowRect