Instructs the control site to process the keystroke described in pMsg and modified by the flags in grfModifiers.
HRESULT TranslateAccelerator(
LPMSG pMsg , //Pointer to the structure
DWORD grfModifiers //Flags describing the state of the keys
);
This method is called by a control that can be UI-active. In such cases, a control can process all keystrokes first through IOleInPlaceActiveObject::TranslateAccelerator, according to normal OLE Compound Document rules. Inside that method, the control can give the container certain messages to process first by calling IOleControlSite::TranslateAccelerator and using the return value to determine if any processing took place. Otherwise, the control always processes the message first. If the control does not use the keystroke as an accelerator, it passes the keystroke to the container through this method.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.
IOleInPlaceActiveObject::TranslateAccelerator, KEYMODIFIERS