Partager via


CHtmlView::OnTranslateAccelerator

Called by Internet Explorer or MSHTML when IOleInPlaceActiveObject::TranslateAccelerator or IOleControlSite::TranslateAccelerator is called to process menu accelerator-key messages from the container's message queue.

virtual HRESULT OnTranslateAccelerator( 
   LPMSG lpMsg, 
   const GUID* pguidCmdGroup, 
   DWORD nCmdID  
);

Parameters

  • lpMsg
    Points to the message that might need to be translated.

  • pguidCmdGroup
    Command group identifier.

  • nCmdID
    Command identifier.

Return Value

S_OK if successful, or S_FALSE otherwise.

Remarks

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

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart