This topic has not yet been rated - Rate this topic

IPropertyPage::TranslateAccelerator method

Applies to: desktop apps only

Passes a keystroke to the property page for processing.

Syntax

HRESULT TranslateAccelerator(
  [in]  MSG *pMsg
);

Parameters

pMsg [in]

A pointer to the MSG structure describing the keystroke to be processed.

Return value

This method can return the standard return value E_UNEXPECTED, as well as the following values.

Return codeDescription
S_OK

The property page handles the accelerator.

S_FALSE

The property page handles accelerators, but this one was not useful to it.

E_NOTIMPL

The property page does not handle accelerators.

E_POINTER

The address in pMsg is not valid. For example, it may be NULL.

 

Remarks

Notes to Callers

Calls to this method must occur after a call to IPropertyPage::Activate and before the corresponding call to IPropertyPage::Deactivate.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IPropertyPage is defined as B196B28D-BAB4-101A-B69C-00AA00341D07

See also

IPropertyPage

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
IPropertyPage implementations should let their site handle the accelerator first
IPropertyPage implementions should let their site (passed in via IPropertyPage::SetPageSite) handle the accelerator first via the IPropertyPageSite::TranslateAccelerator method. You need to make sure that you handle this method returning S_FALSE and E_NOTIMPL.