Share via


CReBarCtrl::GetRect

BOOL GetRect(UINT uBand**, LPRECT** prc**) const;**

Return Value

Nonzero if successful; otherwise zero.

Parameters

uBand

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

prc

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

Remarks

This member function implements the behavior of the Win32 message , as described in the Platform SDK.

Example

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

CReBarCtrl OverviewClass MembersHierarchy Chart

See Also   CReBarCtrl::SizeToRect