Contents Index Topic Contents | ||
Previous Topic: IShellView::SelectItem Next Topic: IShellView::UIActivate |
IShellView::TranslateAccelerator
HRESULT TranslateAccelerator( LPMSG lpmsg );Translates accelerator key strokes when a namespace extension's view has the focus.
- 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.
- lpmsg
- Address of the message to be translated.
This method is called by Windows Explorer to let the view translate its accelerators.
Notes to Callers
Windows Explorer calls this method before any other translation if the view has the focus. If the view does not have the focus, it is called after Explorer translates its own accelerators.
Notes to Implementers
By default, the view should return S_FALSE so that Windows Explorer can either do its own accelerator translation or normal menu dispatching. The view should return S_OK only if it has processed the message as the accelerator and does not want Explorer to process it further.
See also IShellView
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.