Поделиться через


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 
);

Параметры

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

Возвращаемое значение

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

Заметки

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

Требования

Header: afxhtml.h

См. также

Основные понятия

CHtmlView Class

CHtmlView Members

Hierarchy Chart

CHtmlView::OnShowUI

CHtmlView::OnHideUI

CHtmlView::OnUpdateUI