BCGControlBar Pro for MFC
CBCGPUserToolsManager::CBCGPUserToolsManager ( const UINT  uiCmdToolsDummy,
const UINT  uiCmdFirst,
const UINT  uiCmdLast,
CRuntimeClass *  pToolRTC = RUNTIME_CLASS(CBCGPUserTool),
UINT  uArgMenuID = 0,
UINT  uInitDirMenuID = 0 
)

Constructs a CBCGPUserToolsManager.

There should be only one user tools manager per application.

The uiCmdFirst - uiCmdLast interval should be chosen according to expected number of user tools in the application. The pToolRTC parameter must specify either CBCGPUserTool or CBCGPUsertTool - derived runtime class information.

The uArgMenuID parameter allows to specify a predefined list of arguments to be chosen from a popup menu. The framework processes the menu commands by itself. The uInitDirMenuID parameter allows to specify a predefined list of initial directories for the user tool's command. The user selection processed by the framework as well. By default, the framework just takes a selected menu item's text and puts it to the arguments or initial directory edit control.

Parameters
uiCmdToolsDummySpecifies a dummy menu item to be replaced by the actual menu items associated with the user tools.
uiCmdFirstSpecifies a menu item command identifier to be assigned to the first user tool.
uiCmdLastSpecifies a menu item command identifier to be assigned to the last user tool.
pToolRTCSpecifies the user tool runtime class information. It enables programmers to customize the user tools invocation algorithms.
uArgMenuIDSpecifies an arguments menu resource ID.
uInitDirMenuIDSpecifies an initial folder menu resource ID.