InkEdit.KeyDown event
Occurs when the user presses a key while the InkEdit control has focus.
Syntax
HRESULT KeyDown(
Long *pKey,
short ShiftKey
);
Parameters
- pKey
-
The virtual-key code of the key pressed by the user.
- ShiftKey
-
A member of the InkShiftKeyModifierFlags enumeration, that indicates which modifier keys are depressed at the time of the event.
Value Meaning - IKM_Shift
Specifies that the SHIFT key was used as a modifier.
- IKM_Control
Specifies that the CTRL key was used as a modifier.
- IKM_Alt
Specifies that the ALT key was used as a modifier.
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_IeeKeyDown.
Requirements
|
Minimum supported client |
Windows XP Tablet PC Edition [desktop apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
Library |
|
See also
- InkEdit
- InkShiftKeyModifierFlags Enumeration
- KeyPress Event [InkEdit Control]
- KeyUp Event [InkEdit Control]