If the message is nottranslated (that is, a character message is not posted to the thread's messagequeue), the return value is zero.
Remarks
The TranslateMessage functiondoes not modify the message pointed to by thelpMsg parameter.
WM_KEYDOWN and WM_KEYUPcombinations produce a WM_CHAR or WM_DEADCHAR message.WM_SYSKEYDOWN andWM_SYSKEYUP combinations produce a WM_SYSCHAR or WM_SYSDEADCHAR message.
TranslateMessage producesWM_CHARmessages only for keys that are mapped to ASCII characters by the keyboarddriver.
If applications processvirtual-key messages for some other purpose, they should not callTranslateMessage. For instance,an application should not callTranslateMessageif the TranslateAccelerator function returns a nonzero value. Note that theapplication is responsible for retrieving and dispatching input messages to thedialog box. Most applications use the main message loop for this. However, topermit the user to move to and to select controls by using the keyboard, theapplication must call IsDialogMessage. For more information, see Dialog BoxKeyboard Intece.
Windows 95/98/Me:TranslateMessage is supportedby the Microsoft Layer for Unicode (MSLU). To use this, you must add certainfiles to your application, as outlined in Microsoft Layer for Unicode onWindows 95/98/Me Systems.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-49686-2.html
按国际法
不法经销商去屎吧