BCGControlBar Pro for MFC
CBCGPUserTool* CBCGPUserToolsManager::FindTool ( UINT  uiCmdId) const

Given a menu command ID returns a pointer to CBCGPUserTool - derived object associated with this menu command.

Returns
A pointer to CBCGPUserTool or CBCGPUserTool - derived object if success; otherwise NULL.

Call this member function to retrieve a pointer to CBCGPUserTool or CBCGPUserTool - derived object associated with the specified menu command ID.

Parameters
uiCmdIdA menu command identifier.