IShellView::TranslateAccelerator
Other versions of this page are also available for the following:
8/28/2008
This method translates accelerator key strokes when a namespace extension's view has the focus.
Syntax
HRESULT TranslateAccelerator(
LPMSG lpmsg
);
Parameters
- lpmsg
[in] Address of the message to be translated.
Return Value
Returns NOERROR if successful, or an OLE-defined error value otherwise.
If the view returns S_OK, it indicates that the message was translated and should not be translated or dispatched by Windows Explorer.
Remarks
This method is called by Windows Explorer to let the view translate its accelerators.
if the view has the focus, Windows Explorer calls this method before any other translation. If the view does not have the focus, it is called after Windows Explorer translates its own accelerators.
By default, the view should return S_FALSE so that Windows Explorer can translate its accelerators or dispatch normal menus. The view should return S_OK only if it has processed the message as the accelerator and does not want Windows Explorer to process it further.
Requirements
Header | shobjidl.h, shobjidl.idl |
Library | Developer Implemented |
Windows Embedded CE | Windows CE 5.0 and later |