Condividi tramite


CUserToolsManager::CUserToolsManager

Constructs a CUserToolsManager. Each application must have at most one user tools manager.

CUserToolsManager();
CUserToolsManager(
   const UINT uiCmdToolsDummy,
   const UINT uiCmdFirst,
   const UINT uiCmdLast,
   CRuntimeClass* pToolRTC=RUNTIME_CLASS(CUserTool),
   UINT uArgMenuID=0,
   UINT uInitDirMenuID=0 
);

Parameters

  • [in] uiCmdToolsDummy
    An unsigned integer that the framework uses as a placeholder for the command ID of the user tools menu.

  • [in] uiCmdFirst
    The command ID for the first user tool command.

  • [in] uiCmdLast
    The command ID for the last user tool command.

  • [in] pToolRTC
    The class that CUserToolsManager::CreateNewTool creates. By using this class, you can use a derived type of CUserTool Class instead of the default implementation.

  • [in] uArgMenuID
    The menu resource ID of the arguments popup menu.

  • [in] uInitDirMenuID
    The menu resource ID of the initial directory popup menu.

Remarks

Do not call this constructor. Instead, call CWinAppEx::EnableUserTools to enable user tools, and call CWinAppEx::GetUserToolsManager to obtain a pointer to the CUserToolsManager. For more information, see User-defined Tools.

Requirements

Header: afxusertoolsmanager.h

See Also

Reference

CUserToolsManager Class

Hierarchy Chart