SECDefaultCommandId Structure
typedef struct {
UINT m_nID;
UINT m_nName;
UINT m_nDescription;
} SECDefaultCommandId;
This structure holds a command id, its short name and its description. To customize which command ID's the user may assign a macro to, create an array of this structure and fill it in.
Defined in: SCutCmds.h
Members
m_nID
The ID of the command, such as ID_VIEW_TOOLBAR
m_nName
String ID that gives the short name of the command. If this is zero then the menu name or tooltip text is used.
m_nDescription
String ID that gives the description of the command. If zero then the status bar text is used.
Example
Creating a list of macro-able command ID's.
This declaration of an array of SECDefaultCommandId structures gives the system
a list of macro-able command ID's, but overrides some of the default names and descriptions.
const SECDefaultCommandId defaultCommands[] =
{
{ ID_VIEW_TOOLBAR, IDS_MAC_VIEW_TOOLBAR, IDS_DESC_VIEW_TOOLBAR },
{ ID_FILE_OPEN, 0, IDS_DESC_FILE_OPEN }, // Default name
{ ID_FILE_SAVE, IDS_MAC_FILE_SAVE, 0 }, // Default description
// etc.
{ ID_FILE_PRINT } // Default both
};
See Also