CReBarCtrl::GetRect

实现Win32消息 RB_GETRECT的行为,如 Windows SDK所述。

BOOL GetRect( 
   UINT uBand, 
   LPRECT prc 
) const;

参数

  • uBand
    一个带区的从零开始的索引rebar控件的。

  • prc
    要接收rebar带区的区域的 RECT 结构的指针。

返回值

非零,如果成功;否则零。

示例

CRect rc;
m_wndReBar.GetReBarCtrl().GetRect(0, &rc);
CString msg;
msg.Format(_T("rect.left = %d, rect.top = %d, ")
    _T("rect.right = %d, rect.bottom = %d"), rc.left,
    rc.top, rc.right, rc.bottom);
AfxMessageBox(msg);   

要求

Header: afxcmn.h

请参见

参考

CReBarCtrl Class

层次结构图

CReBarCtrl::SizeToRect