COleControl::FireKeyPress

void FireKeyPress( USHORT* pnChar );

Parameters

pnChar

A pointer to the character value of the key pressed.

Remarks

Called by the framework when a key is pressed and released while the custom control is UI Active within the container. 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.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::OnKeyPressEvent, COleControl::FireKeyDown, COleControl::FireKeyUp