Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CCommandManager class manages commands and their association with images.
class CCommandManager
Members
Public Methods
Name |
Description |
Deletes all elements from the command list and from the global and user maps. |
|
Deletes all elements from the command list and from the global and user maps. |
|
Deletes from the user map an element that has a specified command ID. |
|
Deletes all elements from the user map. |
|
Determines whether the command ID is associated with an image. |
|
Returns the index of an image that is associated with a specified command ID. |
|
Returns the image index associated with a menu item that has a specified command ID. |
|
Indicates whether the command ID is associated with an image index. |
|
Loads all user command values from the registry. |
|
CCommandManager::ResetAllImages |
Reserved for future use. |
Saves all user command values to the registry. |
|
Creates a new association between a command ID and an image index. |
Remarks
This class supports the MFC framework infrastructure and is not intended to be used directly from your code.
Menu and toolbar classes in Visual C++ 2008 Feature Pack use a single global static CCommandManager object to support the user interface by managing command IDs and their associated image indexes.
Inheritance Hierarchy
Requirements
Header: afxcommandmanager.h
See Also
Concepts
Other Resources
Change History
Date |
History |
Reason |
---|---|---|
April 2009 |
Removed the unused placeholder for CCommandManager::SetUserImages. |
Information enhancement. |