Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This topic applies to Windows XP or later.
The KeyDown method is called when the user presses a key.
Syntax
void KeyDown(
short *pKeyCode,
short Shift
);
Parameters
pKeyCode
Specifies the key code.Shift
Specifies the shift state. See Remarks.
Return value
This method does not return a value.
Remarks
The Shift, Ctrl and ALT keys have the following values:
Value | Meaning |
---|---|
1 | The Shift key was pressed. |
2 | The Ctrl key was pressed. |
4 | The ALT key was pressed. |
The value of the Shift parameter may also be any bitwise OR combination of these values.
The dispatch identifier (dispid) of this method is DISPID_KEYDOWN.
Requirements
Header |
Msvidctl.h |
IDL |
Msvidctl.idl |
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012