Contents Index Topic Contents | ||
Previous Topic: IDocHostUIHandler::ResizeBorder Next Topic: IDocHostUIHandler::ShowUI |
IDocHostUIHandler::ShowContextMenu
HRESULT ShowContextMenu( DWORD dwID, POINT FAR *ppt, IUnknown FAR *pcmdtReserved, IDispatch FAR *pdispReserved );Called from IE4/MSHTML when it is about to show its context menu.
- Return Values:
S_OK Host displayed its own UI. IE4/MSHTML will not attempt to display its UI. S_FALSE Host did not display any UI. IE4/MSHTML will display its UI. DOCHOST_E_UNKNOWN Menu identifier is unknown. IE4/MSHTML may attempt an alternative identifier from a previous version.
- dwID
- Identifier of the context menu to be displayed.
- ppt
- Screen coordinates for the menu.
- pcmdtReserved
- IOleCommandTarget interface used to query command status and execute commands on this object.
- pdispReserved
- IDispatch interface of the object at the screen coordinates. This allows a host to differentiate particular objects to provide more specific context.
The following menu identifiers are currently used. Note: These identifiers are likely to change and are not currently exposed in a header file as part of the IE4/MSHTML SDK.
#define CONTEXT_MENU_DEFAULT 0 #define CONTEXT_MENU_IMAGE 1 #define CONTEXT_MENU_CONTROL 2 #define CONTEXT_MENU_TABLE 3 #define CONTEXT_MENU_DEBUG 4 #define CONTEXT_MENU_1DSELECT 5 #define CONTEXT_MENU_ANCHOR 6 #define CONTEXT_MENU_IMGDYNSRC 7
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.