IPreviewHandlerFrame::TranslateAccelerator method (shobjidl_core.h)
Directs the host to handle a keyboard shortcut passed from the preview handler.
Syntax
HRESULT TranslateAccelerator(
[in] MSG *pmsg
);
Parameters
[in] 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
Requirement | Value |
---|---|
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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for