Condividi tramite


CUserToolsManager::FindTool

Returns the pointer to the CUserTool Class object that is associated with a specified command ID.

CUserTool* FindTool(
   UINT uiCmdId 
) const;

Parameters

  • [in] uiCmdId
    A menu command identifier.

Return Value

A pointer to a CUserTool Class or CUserTool-derived object if success; otherwise NULL.

Remarks

When FindTool is successful, the returned type is the same as the type of the pToolRTC parameter to CWinAppEx::EnableUserTools.

Requirements

Header: afxusertoolsmanager.h

See Also

Reference

CUserToolsManager Class

Hierarchy Chart