CReBar::GetReBarCtrl

This member function allows direct access to the underlying common control.

CReBarCtrl& GetReBarCtrl( ) const;

Return Value

A reference to a CReBarCtrl object.

Remarks

Call this member function to take advantage of the functionality of the Windows rebar common control in customizing your rebar. When you call GetReBarCtrl, it returns a reference object to the CReBarCtrl object so you can use either set of member functions.

For more information about using CReBarCtrl to customize your rebar, see Using CReBarCtrl.

Example

CReBarCtrl& refReBarCtrl = m_wndReBar.GetReBarCtrl();

UINT nBandCount = refReBarCtrl.GetBandCount();
CString msg;
msg.Format(_T("Band Count is: %u"), nBandCount);
AfxMessageBox(msg);

Requirements

Header: afxext.h

See Also

Reference

CReBar Class

Hierarchy Chart