BOOL CBCGPToolbarCustomize::AddToolBar | ( | LPCTSTR | lpszCategory, |
UINT | uiToolbarResId | ||
) |
Loads a toolbar from the resources and adds its commands to the list box of commands on the "Commands" page.
This function loads a toolbar from the resources and loops over its commands. For each command it creates a CBCGPToolbarButton object and calls the AddButton() member function that inserts a button in the list box of commands on the "Commands" page.
lpszCategory | Specifies the category string a toolbar belongs to. |
uiToolbarResId | Specifies the resource ID of a toolbar whose commands to insert into the list box of commands. |