BCGControlBar Pro for MFC
void CBCGPFrameWnd::SetupToolbarMenu ( CMenu &  menu,
const UINT  uiViewUserToolbarCmdFirst,
const UINT  uiViewUserToolbarCmdLast 

Modifies a toolbar object by looking for dummy items and replacing them with user-defined items.

Use this function to modify a toolbar menu by replacing dummy items with user-defined commands.

menuA reference to a CMenu object to be modified.
uiViewUserToolbarCmdFirstSpecifies the first user-defined command.
uiViewUserToolbarCmdLastSpecifies the last user-defined command.