SECShortcutTable Class

class SECShortcutTable: public CArray<ACCEL,ACCEL&>

The shortcut classes provide an easy way to allow users to redefine the keyboard for an application. SECShortcutTable stores the shortcut key bindings in an array of ACCELs. A user can load a default set of key bindings from a given file, or override the loading of the bindings with their own logic.

Defined in: SCutAccl.h

Comments

See the SHORTCUT sample in the \SAMPLES\TOOLKIT\STANDARD\UIEXT\SHORTCUT directory for a demonstration of this class.

See Also

SECCommandList  SECShortcutDlg

Class Members

Public Members

SECShortcutTable()

Creates an SECShortcutTable instance.

virtual BOOL  ApplyAcceleratorsToMenus()

Updates the descriptions for all menus.

virtual void  GetDataFileName(CString& str, ENameType type)

Retrieves the data file where the ACCELs are stored.

virtual BOOL  Load()

Loads the user defined ACCELs

virtual BOOL  Save()

Saves the user define ACCELs

virtual BOOL  Apply()

Creates the new ACCEL table for the mainframe.

void  ResetAll()

Restores the default ACCEL table.

void  LoadDefaultTable()

Loads the current ACCEL table with the default table.