CReBarCtrl& GetReBarCtrl( ) const;
Return Value
A reference to a CReBarCtrl object.
Remarks
This member function allows direct access to the underlying common control.
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 in the Visual C++ Programmer’s Guide.
Example
CReBarCtrl& refReBarCtrl = m_wndReBar.GetReBarCtrl();
UINT nBandCount = refReBarCtrl.GetBandCount();
CString msg;
msg.Format("Band Count is: %u", nBandCount);
AfxMessageBox(msg);