// Create the ToolBar
m_toolbarCtrl = new CToolBarCtrl() ;
// If you want to position the toolbar at the top use the CCS_TOP option.
m_toolbarCtrl->Create(TBSTYLE_TOOLTIPS |WS_CHILD | WS_VISIBLE | CCS_TOP | CCS_NODIVIDER, rc ,this , 0 );
else
// If you want to position the toolbar at the bottom use the CCS_BOTTOM option.
m_toolbarCtrl->Create(TBSTYLE_TOOLTIPS |WS_CHILD | WS_VISIBLE | CCS_BOTTOM | CCS_NODIVIDER, rc ,this , 0 );
// Add the number of buttons to be added to the Toobar Control
m_toolbarCtrl->AddButtons(5, btn);
// Select the Bitmap to be displayed
m_toolbarCtrl->AddBitmap(1, IDR_MAINFRAME);