Share via


COleControl::FireKeyUp

Called by the framework when a key is released while the custom control is UI Active within the container.

void FireKeyUp(
   USHORT* pnChar,
   short nShiftState 
);

Parameters

  • pnChar
    Pointer to the virtual key code value of the released 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 KeyUp event to occur, the control's Event map must have a stock KeyUp event defined.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::FireKeyDown

COleControl::FireKeyPress

COleControl::OnKeyUpEvent

Other Resources

COleControl Members