[This is preliminary documentation and subject to change.]
Enables a snap-in to obtain a given verb's current button state.
HRESULT GetVerbState(
MMC_CONSOLE_VERB m_eCmdID, // Command identifier of the verb
MMC_BUTTON_STATE nState, // State of the verb.
BOOL * pState // Pointer to information returned.
);
Value | Meaning |
---|---|
MMC_VERB_CUT | Enables an item that can be selected to be copied to the clipboard and removed. Implemented by the user. |
MMC_VERB_COPY | Enables the selected item that can be selected to be copied to the clipboard. Implemented by the user. |
MMC_VERB_PASTE | Enables the selected item that have been cut or copied to be pasted into the result pane. Implemented by the user. |
MMC_VERB_DELETE | Enables the selected item to be deleted. Implemented by the console. A notification will be sent to the snap-in that owns that item. |
MMC_VERB_PROPERTIES | The console asks the snap-in and all snap-in extensions to provide property pages for the currently selected item. Implemented by the console. |
MMC_VERB_RENAME | Enables the selected item to be renamed. Implemented by the console. |
MMC_VERB_REFRESH | Determines whether the currently selected scope item (folder) can be refreshed. Implemented by the user. |
MMC_VERB_PRINT | Determines whether the currently selected item can be printed. Implemented by the user. |
Value | Meaning |
---|---|
ENABLED | Enables the menu item so it can be selected and restores it from its grayed state. |
HIDDEN | Hides the button in the toolbar or item in the menu. |
Every time an item is selected, the verb states for all the commands are returned to disabled and visible. It is up to the snap-in developer to update the verb state every time an item is selected.