InkEdit.KeyPress event

Occurs when the user presses and releases a key while the InkEdit control has focus.

Syntax


HRESULT KeyPress(
   Long *Char
);

Parameters

Char

An integer that returns a standard numeric ANSI keycode. The Char parameter is passed by reference; changing it sends a different character to the control. Changing the Char parameter to 0 cancels the event.

Return value

If this event succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This event method is defined in the _IInkEditEvents interface. The _IInkEditEvents interface implements the IDispatch interface with an identifier of DISPID_IeeKeyPress.

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Inked.h (also requires inked_i.c)

Library

InkEd.dll

See also

InkEdit
KeyDown Event [InkEdit Control]
KeyUp Event [InkEdit Control]

 

 

Show: