Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Properties

m_cmds Command container, which type is locally defined in the CExtCmdProfile class as CMap < UINT, UINT, CExtCmdItem *, CExtCmdItem * > (which, in turn, can be defined as a map from the command identifier to the command description object).
m_icons Command icon container, which type is locally defined in the CExtCmdProfile class as CArray < CExtCmdIcon *, CExtCmdIcon * >.
m_sName Profile name.

Classes

~CExtCmdProfile Destructor.
CExtCmdProfile Constructor.
CmdAllocPtr Returns a pointer to the CExtCmdItem object specified by the command identifier. If no command is found, the function returns NULL.
CmdGetIcon Returns a reference to the CExtCmdIcon object associated with the nCmdID command. If no command is found, the function returns a reference to an empty icon object.
CmdGetIconPtr Returns a pointer to the CExtCmdIcon object associated with the nCmdID command. If no command is found, the function returns NULL.
CmdGetPtr Returns a pointer to the CExtCmdItem object identified with a command identifier. If no command is found, the function returns NULL.
CmdIsRegistered Checks whether the nCmdID command is registered in the profile.
CmdRemove Removes all settings for the nCmdID command from the profile. The function returns true if succeeded (i.e. the command has been removed successfully) or false otherwise.
CmdRemoveAll Removes all settings for all the commands from the profile.
CmdRemoveByMask Removes all commands specified with dwMask from the profile.
CmdSetIcon Assigns the icon to the command specified with nCmdID.
CmdSetup Registers (or reregisters) the command in the profile.
OnCreateCmdItem Called when the profile creates a new instance of a CExtCmdItem-like object
ResetUsageStatistics Resets the usage statistics for all commands in the profile.
SerializeState Reads from (or writes to) the Windows registry the serialization state, which is stored under the following registry key:
SetBasicCommands Enables/disables the command statistics for the commands specified by pCommands. If bOn is set to true, the commands are always displayed in the menu, otherwise, they are hidden.
UpdateFromMenu Updates the command profile with the menu commands.
UpdateFromToolBar Updates the command profile with the toolbar commands and their images. Optionally returns toolbar item identifiers.

Operators

operator= Assignment operator.

See Also

CExtCmdProfile Overview | Hierarchy Chart