BOOL CBCGPWorkspace::EnableUserTools | ( | const UINT | uiCmdToolsDummy, |
const UINT | uiCmdFirst, | ||
const UINT | uiCmdLast, | ||
CRuntimeClass * | pToolRTC = RUNTIME_CLASS(CBCGPUserTool) , |
||
UINT | uArgMenuID = 0 , |
||
UINT | uInitDirMenuID = 0 |
||
) |
Enables user-defined plug-ins (user tools) in the application.
Use this function to enable the application to support user-defined plug-ins (tools). When this feature is enabled, the framework automatically supports a special dynamic menu, which can be extended during customization. Each new item is associated with an external command and the command is invoked by the framework, when the user selects the appropriated item from the "Tools" menu.
uiCmdToolsDummy | The command ID of the dummy menu item used as a placeholder for the user tools menu. |
uiCmdFirst | The menu item ID used as a first user tool menu item. |
uiCmdLast | The menu item ID used as a last user tool menu item. |
pToolRTC | Runtime class information of the user tool object. |
uArgMenuID | Argument menu ID. |
uInitDirMenuID | Initial tool directory menu ID. |