BCGControlBar Pro for MFC
BOOL CBCGPReBar::AddBar ( CWnd *  pBar,
LPCTSTR  pszText = NULL,
CBitmap *  pbmp = NULL,
DWORD  dwStyle = RBBS_GRIPPERALWAYS|RBBS_FIXEDBMP 
)

Adds a band to a rebar.

Returns
Nonzero if successful; otherwise 0.

Call this member function to add a band to the rebar.

Parameters
pBarA pointer to a CWnd object that is the child window to be inserted into the rebar. The referenced object must have a WS_CHILD.
pszTextA pointer to a string containing the text to appear on the rebar. NULL by default. The text contained in lpszText is not part of the child window; it is on the rebar itself.
pbmpA pointer to a CBitmap object to be displayed on the rebar background. NULL by default.
dwStyleA pointer to a CBitmap object to be displayed on the rebar background. NULL by default.