IOleControlSite::TranslateAccelerator method (ocidl.h)
Passes a keystroke to the control site for processing.
HRESULT TranslateAccelerator( [in] MSG *pMsg, [in] DWORD grfModifiers );
A pointer to the MSG structure describing the keystroke to be processed.
Flags describing the state of the Control, Alt, and Shift keys. The value of the flag can be any valid KEYMODIFIERS enumeration values.
This method can return the following values.
||The container processed the message.|
||The container did not process the message. This value must also be returned in all other error cases besides E_NOTIMPL.|
||The container does not implement accelerator support.|
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.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|