IDocHostUIHandler::ShowContextMenuIDocHostUIHandler::ShowContextMenu*
*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.

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


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.