Share via


CReBarCtrl::GetRect

Implements the behavior of the Win32 message RB_GETRECT, as described in the Windows SDK.

BOOL GetRect( 
   UINT uBand, 
   LPRECT prc 
) const;

Parameters

  • uBand
    Zero-based index of a band in the rebar control.

  • prc
    A pointer to a RECT structure that will receive the bounds of the rebar band.

Return Value

Nonzero if successful; otherwise zero.

Example

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);   

Requirements

Header: afxcmn.h

See Also

Reference

CReBarCtrl Class

Hierarchy Chart

CReBarCtrl::SizeToRect