Fabian Maurer dark.shadow4@web.de writes:
It would be cleaner to avoid TranslateMessage instead of removing the message (possibly getting the wrong one).
Sorry, I don't really see the problem. TranslateMessage should always generate a WM_CHAR, how could we get a wrong message? Shouldn't be possible, except for a bug in TranslateMessage, or I'm missing something.
TranslateMessage will put a WM_CHAR in the queue, but there may be another one already in there, which would then get removed.