SECCommandList Class
class SECCommandList: public CArray<SECCommand,SECCommand&>
SECCommandList contains the list of all command IDs that can be assigned, together with a short name and a long description.
Defined in: SCutCmds.h
Comments
Any and all parts of SECCommandList may be defaulted.
SECCommandList maintains a list of command IDs that may be accelerated. The accelerator keys themselves are not kept in this structure, because it is a one-to-many relationship.
See the SHORTCUT sample in the \SAMPLES\TOOLKIT\STANDARD\UIEXT\SHORTCUT directory for a demonstration of this class.
See Also
SECDefaultCommandId SECShortcutTable SECShortcutDlg
Class Members
Public Members
SECCommandList(BOOL bInitRules=TRUE)
Creates an SECCommandList instance.
virtual void SetRules( WORD wInvalidComb, WORD wModifiers )
Use this function to allow various key combinations.
virtual void ClearCommandIds()
Call this command to get rid of all the default command IDs.
virtual void AddCommandIds(const SECDefaultCommandId ids[], int count)
Installs the custom list of IDs.
virtual BOOL QueryExcludeId(UINT nID)
Determines whether an ID should be excluded.
virtual BOOL FillEmpties()
Fills empty strings.
virtual BOOL AutoFillEmptiesFromMenus()
Automatically fills empty strings from the menu.
virtual BOOL AutoFillFromStringIds()
Automatically fills empty strings from the string IDs.
virtual void DeriveDefaults()
Loads defaults from the menus, tooltips, etc.,
virtual int Find(UINT nID)
Verifies the validity of the ID.
virtual BOOL AddDefaultIds()
Loads all the menu IDs.
virtual BOOL FillEmptiesFromMenu(HMENU hMenu, const CString& strPrevious = "")
Fills empty strings from the menu
virtual void LoadIdsFromMenu(HMENU hMenu)
Loads IDs from the menu
virtual void LoadIdsFromAccelTable()
Loads Ids from the accelerator table.
virtual void ExtractMenuItemName(LPTSTR str)
Extracts accelerator characters from the menu string.