Delen via


COleControl::FireKeyDown

Called by the framework when a key is pressed while the control is UI active.

void FireKeyDown( 
   USHORT* pnChar, 
   short nShiftState  
);

Parameters

  • pnChar
    Pointer to the virtual key code value of the pressed key. For a list of 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

If this event is defined as a custom event, you determine when the event is fired.

For automatic firing of a KeyDown event to occur, the control's Event map must have a stock KeyDown event defined.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::FireKeyUp

COleControl::FireKeyPress

COleControl::OnKeyPressEvent