MKI_MENU_ENTRY (Basic Classes) Changed in Version 2019.1

www.CAD6.com

C++ Syntax

class MKI_MENU_ENTRY

{

  public:

 

  LPWSTR m_pszMenuEntry,

         m_pszDescription;

};

 

This structure contains a single menu entry / command title text pair.

 

Element Description

MenuEntry

[LPWSTR] Address of a null-terminated string that contains a command's menu entry that will be listed in a menu or submenu.

All command entries of a standard command plug-in should start with a shortcut key separated from the command name by two spaces, e.g. "&1  Command One". Usually, the shortcuts should be the digits '1' though '0', followed by capital characters 'A' to 'H'.

If the plug-in does have a submenu, this submenu should end with a separator followed by the menu item "&+  About..." in English plug-ins, "&+  Infos..." in German plug-ins or the equivalent in other foreign languages. This menu item should display a dialog window stating the plug-in's name, its creator and the current version number.

If the plug-in is either an import or export filter, MenuEntry should contain a brief description of the file format(s) handled by the filter, e.g. "DXF Drawings (*.DXF)". In the menu, a shortcut key will appear before this text. As a result, this text should not contain a shortcut key definition!

Description

[LPWSTR] Address of a null-terminated string that contains a command's complete description. If this command lies within a custom menu or submenu, it should state the plug-in's name (possibly shortened) and the command's name, separated by a space and the character '>' (Ansi 62). If, e.g., MenuEntry points to the submenu command entry "&1  Command One", and the plug-in is titled "Sample Plug-In", then Description should point to the command name "Sample Plug-In > Command One". If the plug-in does only have one command, the plug-in name alone will suffice.

If the plug-in is either an import or export filter, Description must contain the plug-in's complete name. This name should contain the phrase "Import >" if the plug-in is an import filter, or "Export >" if the plug-in is an export filter, plus the description of the file format(s) handled by the filter.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH