ITfKeyEventSink::OnKeyDown Method

Syntax

HRESULT OnKeyDown(
  [in]   ITfContext *pic,
  [in]   WPARAM wParam,
  [in]   LPARAM lParam,
  [out]  BOOL *pfEaten
);

Parameters

pic [in]

Pointer to the input context that receives the key event.

wParam [in]

Specifies the virtual-key code of the key. For more information about this parameter, see the wParam parameter in WM_KEYDOWN.

lParam [in]

Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag of the key. For more information about this parameter, see the lParam parameter in WM_KEYDOWN.

pfEaten [out]

Pointer to a BOOL that, on exit, indicates if the key event was handled. If this value receives TRUE, the key event was handled. If this value is FALSE, the key event was not handled.

Return Value

The method can return one of the following values.

ValueDescription
S_OK

The method was successful.

 

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
RedistributableTSF 1.0 onWindows NT 4.0,Windows 2000 ProfessionalandWindows MeWindows 98
HeaderMsctf.idl and Msctf.h
DLLMsctf.dll

See Also

ITfKeyEventSink
WM_KEYDOWN

Send comments about this topic to Microsoft

Build date: 7/14/2009

Tags :


Page view tracker