Contents Index Topic Contents | ||
Previous Topic: IContextMenu2::HandleMenuMsg Next Topic: IContextMenu2::QueryContextMenu |
IContextMenu2::InvokeCommand
HRESULT InvokeCommand( LPCMINVOKECOMMANDINFO lpici );Carries out the command associated with a context menu item.
- Returns NOERROR if successful, or an OLE-defined error code otherwise.
The shell calls this method when the user chooses a command added to a context menu by the handler. This method may also be called by an application without any corresponding user action.
- lpici
- Address of a CMINVOKECOMMANDINFO structure containing information about the command.
See also IContextMenu2, IContextMenu
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.