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

Properties

g_bDisableCmdIfNoHandler Flag indicating the way the commands that do not have the appropriate command handlers will be handled. If true, all visual elements (e.g. a menu item) related to this command will be disabled.

Classes

CExtCmdManager Constructor.
CmdAllocPtr Returns a pointer to the CExtCmdItem object, which indicates the nCmdID command. If the requested command is not supported, the function returns NULL.
CmdGetIcon Returns a reference to the CExtCmdIcon object associated with the nCmdID command. If the command identified by nCmdID is not supported in the profile, the function returns a reference to an empty icon object.
CmdGetIconPtr Returns a pointer to the CExtCmdIcon object associated with the nCmdID command. If the command identified by nCmdID is not supported in the profile, the function returns NULL.
CmdGetPtr Returns a pointer to the CExtCmdItem object identified by the nCmdID command. If the command identified by nCmdID is not supported in the profile, the function returns NULL.
CmdIsRegistered Checks whether the nCmdID command has been set up in the profile. The function returns true, if the settings have been made.
CmdRemoveAll Removes the settings for all the commands from the profile.
CmdRemove Removes the settings for the nCmdID command from the profile. The function returns true if succeeded (i.e. the command was removed successfully) or false otherwise.
CmdSetIcon Assigns an icon to the command specified by nCmdID. The icon can be extracted from a bitmap or another icon.
CmdSetup Registers (or re-register) the command in the profile.
ProfileDestroy Removes the command profile from the command manager and returns true if succeeded.
ProfileGetPtr Returns a pointer to the CExtCmdProfile object with the name specified in sProfileName.
ProfileGetWndList Returns a list of handles of the windows attached to the command profile.
ProfileNameFromWnd Returns the profile name for the window specified by hWnd.
ProfileRename Renames the command profile and returns true if succeeded.
ProfileSetup Sets the command manager to work with the window specified by hWnd through the profile with the name specified by sProfileName
ProfileWndAdd Establishes the correspondence between the window specified by hProfileWnd and the sProfileName profile.
ProfileWndRemove Removes a link between the window specified by hProfileWnd and the sProfileName profile.
ProfileWndRemoveAll Removes all windows from the command profile and returns the number of removed windows.
SerializeState Reads from (or writes to) the Windows registry the serialization state, which is stored in the following registry key:
SetBasicCommands Disables the command statistics for the commands specified by pCommands. If the bOn flag is set to true, the commands will always be displayed in the menu, otherwise they will be hidden when activating the menu.
UpdateFromMenu Loads the menu from the application resources and updates the command manager object with the menu commands.
UpdateFromToolBar Updates the command manager with the toolbar commands and their images.

See Also

CExtCmdManager Overview | Hierarchy Chart