Partager via


CHtmlView::OnShowContextMenu

Called from Internet Explorer or MSHTML when it is about to show its context menu.

virtual HRESULT OnShowContextMenu(
   DWORD dwID,
   LPPOINT ppt,
   LPUNKNOWN pcmdtReserved,
   LPDISPATCH pdispReserved 
);

Parameters

  • dwID
    Identifier of the context menu to be displayed. See IDocHostUIHandler::ShowContextMenu in the Windows SDK for a list of values.

  • 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.

Return Value

See IDocHostUIHandler::ShowContextMenu in the Windows SDK for a list of values.

Remarks

Override OnShowContextMenu to react to the ShowContextMenu notification from the Microsoft Web Browser control. See IDocHostUIHandler::ShowContextMenu in the Windows SDK for more information.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::OnShowUI

CHtmlView::OnHideUI

CHtmlView::OnUpdateUI

Other Resources

CHtmlView Members