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


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

Параметры

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

  • pguidCmdGroup
    Command group identifier.

  • nCmdID
    Command identifier.

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

S_OK if successful, or S_FALSE otherwise.

Заметки

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

Требования

Header: afxhtml.h

См. также

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

CHtmlView Class

CHtmlView Members

Hierarchy Chart