BOOL CBCGPToolBoxEx::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 extended 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 info. 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 info.
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 information used for dynamic creation of toolbox pages. |
pButtonClass | Runtime class information used for dynamic creation of buttons. |