Share via


IShellView::TranslateAccelerator (Windows CE 5.0)

Send Feedback

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

OS Versions: Windows CE 5.0 and later.
Header: Shobjidl.h, Shobjidl.idl.
Link Library: Implementation dependent.

See Also

IShellView | Standard Shell Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.