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.
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.
lpszPageName | Specifies the page name. |
uiBmpResID | Specifies the resource ID of the bitmap with tool images. |
nImageWidth | Specifies image width (in pixels). |
lstLabels | Specifies the list of labels. |
pPageClass | Runtime class of pages. |
pButtonClass | Runtime class of buttons. |