IPreviewHandlerFrame::TranslateAccelerator method

Directs the host to handle an keyboard shortcut passed from the preview handler.

Syntax

HRESULT TranslateAccelerator(
  MSG *pmsg
);

Parameters

pmsg

Type: MSG*

A pointer to a WM_COMMAND or WM_SYSCOMMAND window message that corresponds to a keyboard shortcut.

Return Value

Type: HRESULT

If the keyboard shortcut is one that the host intends to handle, the host will process it and return S_OK; otherwise, it returns S_FALSE.

Remarks

Note  This method is only called by a preview handler in response to an TranslateAccelerator call.
 

Requirements

   
Minimum supported client Windows Vista, Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
Redistributable Windows Search 4 or later