BCGControlBar Pro for MFC
BOOL CBCGPUserToolsManager::InvokeTool ( UINT  uiCmdId)

Executes a command associated with the user tool.

Returns
Nonzero if the command associated with user tool was executed successfully; otherwise 0.

Call this function to execute a command associated with the user tool. The uiCmdId parameter specifies a menu item of the user tool.

Parameters
uiCmdIdA menu command ID.