Поделиться через


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 
);

Параметры

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

Заметки

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.

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::OnKeyPressEvent

COleControl::FireKeyDown

COleControl::FireKeyUp