BCGControlBar Pro for MFC
BOOL CBCGPToolbarCustomize::SetUserCategory ( LPCTSTR  lpszCategory)

Adds category to the list box of categories on the "Commands" page.

Returns
Nonzero if successful; otherwise 0.

Call this member function to add the user-defined category to the list of categories on the "Commands" page. You must call this function before Create().

Example:

Copy
CMenu menu;
menu.LoadMenu(IDR_BUTTON_MENU);
CMenu* pPopupMenu = menu.GetSubMenu(0);
pDlgCust->AddButton(_T("User"), CBCGPToolbarMenuButton(0, pPopupMenu->GetSafeHmenu(), 0, _T("Select"), TRUE));
pDlgCust->AddButton(_T("User"), CBCGPToolbarButton(ID_USER_TOOL1, 1, _T("User Tool 1"), TRUE));
pDlgCust->AddButton(_T("User"), CBCGPToolbarButton(ID_USER_TOOL2, 2, _T("User Tool 2"), TRUE));
pDlgCust->SetUserCategory(_T("User"));
pDlgCust->Create();
Parameters
lpszCategoryThe name of the category.