Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

First, include ExtToolControlBar.h into the header file of the frame window. Second, replace the CToolBar class name with CExtToolControlBar. Finally, modify the code in the OnCreate() handler of the frame window:

if( !m_wndToolBar.Create( _T( "Toolbar name"),
      this,
      AFX_IDW_TOOLBAR
      )
    || !m_wndToolBar.LoadToolBar( IDR_MAINFRAME )
    )
{
    TRACE0( "Failed to create toolbar" );
    return -1;
}