COleControl::OnKeyDownEvent

Called by the framework after a stock KeyDown event has been processed.

virtual void OnKeyDownEvent(
   USHORT nChar,
   USHORT nShiftState 
);

Parameters

  • nChar
    The virtual key code value of the pressed key. For a list of standard virtual key codes, see Winuser.h

  • nShiftState
    Contains a combination of the following flags:

    • SHIFT_MASK   The SHIFT key was pressed during the action.

    • CTRL_MASK   The CTRL key was pressed during the action.

    • ALT_MASK   The ALT key was pressed during the action.

Remarks

Override this function if your control needs access to the key information after the event has been fired.

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::OnKeyUpEvent

COleControl::OnKeyPressEvent