Class ShortcutOperation

3DS Max Plug-In SDK

Class ShortcutOperation

See Also: Class ShortcutTable, Class ShortcutCallback, Class Interface, Class ClassDesc.

Description:

This class is available in release 3.0 and later only.

This class describes an operation that can be attached to a shortcut. Each shortcut stores an ID that is passed to the window proc when the shortcut is executed, a name for the shortcut operation that appears in the list of accelerators in a table, and an enabled/disabled state. Methods of this class provide access to each of these.

All methods of this class are implemented by the system.

Methods:

Prototype:

ShortcutOperation();

Remarks:

Constructor. The command ID is set to zero, the name is set to NULL and the enabled state is set to FALSE.

Prototype:

int GetId();

Remarks:

Returns the command ID sent to the window proc when the shortcut is executed.

Prototype:

void SetId(int id);

Remarks:

Sets the command ID sent to the window proc.

Parameters:

int id

The ID to set.

Prototype:

TCHAR* GetName();

Remarks:

Returns the name of the operation the user sees in the Preference Settings / Keyboard tab / command list for Plug-Ins.

Prototype:

void SetName(TCHAR* pName);

Remarks:

Sets the name of the operation the user sees.

Parameters:

TCHAR* pName

The name to set.