BCGControlBar Pro for MFC
BOOL CBCGPToolBox::AddToolsPage ( LPCTSTR  lpszPageName,
UINT  uiBmpResID,
int  nImageWidth,
const CStringList &  lstLabels,
CRuntimeClass *  pPageClass = RUNTIME_CLASS(CBCGPToolBoxPage),
CRuntimeClass *  pButtonClass = RUNTIME_CLASS(CBCGPToolBoxButton) 
)

Adds a new page to the toolbox control.

Returns
TRUE if the page was added successfully; otherwise FALSE.

Call this function to add a new page to the toolbox control.

The call may look like this

AddToolsPage (_T("Windows Forms"), IDB_TOOLS_PAGE1, 16, lstLabels);

Where the last parameter specifies the list of labels for tool buttons.

Page and button classes can be customized. If you want to provide your own implementation for toolbox pages, derive a class from CBCGPToolBoxPage and set pPageClass to a pointer to its runtime class. If you want to provide your own implementation for toolbox buttons, derive a class from CBCGPToolBoxButton and set pButtonClass to a pointer to its runtime class.

Parameters
lpszPageNameSpecifies the page name.
uiBmpResIDSpecifies the resource ID of the bitmap with tool images.
nImageWidthSpecifies image width (in pixels).
lstLabelsSpecifies the list of labels.
pPageClassRuntime class of pages.
pButtonClassRuntime class of buttons.