TranslateMessage


static bool TranslateMessage(QueueMessage QMessage)

This function translates virtual key messages into character messages and posts them to the queue.

Parameters

QueueMessage QMessage

The queue message to be translated.

Return

bool

true A virtual key message was translated into a character message.
false No virtual key message was translated.

Notes

When a keyboard key is depressed, the keyboard driver posts the message Message::KeyDown to the queue of the thread that has the input focus. Likewise, when a keyboard key is released, the keyboard driver posts the message Message::KeyUp. This function generates and posts the message Message::Character on the key down transition.

The message for which this function is called remains unmodified.

Details

Name Space IPlusPlus::Windows
Class Win
Assembly IPlusPlus.WinPlus.dll