IASClassMsgSink::HandleKeyPress

This method enables a control to notify its sink when a character key is pressed.

Syntax

HRESULT HandleKeyPress( IDispatch *pdispControl, long lKeyDown );

Parameters

pdispControl
Pointer to the control that is calling the method.
lKeyDown
Long integer that contains the Unicode keycode.

Return Values

NOERROR indicates that the sink handled the message. S_FALSE indicates that the sink did not handle the message. If an error occurs, the appropriate HRESULT value is returned.

Remarks

A control invokes this method when its own IASControl::KeyPress method is invoked.

Pressing a key that does not map to a character, such as VK_LEFT, does not invoke this method.

See Also

IASControl::KeyPress