BCGControlBar Pro for MFC
BOOL CBCGPToolbarCustomize::AddToolBar ( UINT  uiCategoryId,
UINT  uiToolbarResId 
)

Loads a toolbar from the resources and adds its commands to the list box of commands on the "Commands" page.

Returns
Nonzero if successful; otherwise 0.

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.

Parameters
uiCategoryIdSpecifies the resource ID of the category string.
uiToolbarResIdSpecifies the resource ID of a toolbar whose commands to insert into the list box of commands.