COleControl::FireKeyPress

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

void FireKeyPress(
   USHORT* pnChar 
);

Parameters

  • pnChar
    A pointer to the character value of the key pressed.

Remarks

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

The recipient of the event may modify pnChar, for example, convert all lowercase characters to uppercase. If you want to examine the modified character, override OnKeyPressEvent.

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

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::OnKeyPressEvent

COleControl::FireKeyDown

COleControl::FireKeyUp