[Resend 3] user32: Post the WM_KEY{DOWN|UP} messagewhenWM_IME_KEY{DOWN|UP} message is generated by IME.

ByeongSik Jeon bsjeon at hanmail.net
Wed Apr 30 06:50:19 CDT 2008


Dmitry Timoshkov worte:
> You need to fetch all available messages, not just the selected ones. In order
> to do that replace 'while (TRUE)' loop by the 'while (PeekMeessage())' one,
> and as I pointed out earlier add_message() should be done only inside of
> the message proc. So the whole code above should be simplified to just
> 
> while (PeekMeessage(&msg))
> {
>     TranslateMessage(&msg);
>     DispatchMessage(&msg);
> }
> 
I have attached new one.
Regards.

Windows test result:
---------------------
msg.c:5117:Message sequences by WM_IME_KEYDOWN
msg.c:6900:CBT: 3 (HCBT_CREATEWND), 00a903ee, 0022f7bc
msg.c:5090:wmime_keydown_procA: 00A903EE, 0024, 00000000, 0022f820
msg.c:5090:wmime_keydown_procA: 00A903EE, 0081, 00000000, 0022f7fc
msg.c:6900:CBT: 3 (HCBT_CREATEWND), 012502fa, 0022f7bc
msg.c:5090:wmime_keydown_procA: 00A903EE, 0083, 00000000, 0022f840
msg.c:5090:wmime_keydown_procA: 00A903EE, 0001, 00000000, 0022f7fc
msg.c:5090:wmime_keydown_procA: 00A903EE, 0290, 0000000d, 001c0001
msg.c:5090:wmime_keydown_procA: 00A903EE, 0102, 00000041, 00000001
msg.c:5128:expected 0290 - actual 0290
msg.c:5128:expected 0102 - actual 0102
msg.c:5090:wmime_keydown_procA: 00A903EE, 0100, 0000000d, 001c0001
msg.c:5090:wmime_keydown_procA: 00A903EE, 0102, 0000000d, 001c0001
msg.c:5135:expected 0100 - actual 0100
msg.c:5135:expected 0102 - actual 0102
msg.c:6900:CBT: 4 (HCBT_DESTROYWND), 00a903ee, 00000000
msg.c:5090:wmime_keydown_procA: 00A903EE, 0002, 00000000, 00000000
msg.c:6900:CBT: 4 (HCBT_DESTROYWND), 012502fa, 00000000
msg.c:5090:wmime_keydown_procA: 00A903EE, 0082, 00000000, 00000000
---------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-user32-Post-the-WM_KEY-DOWN-UP-message-when-WM_IME.resend3.diff
Type: text/x-patch
Size: 3579 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080430/2b1f51e9/attachment-0001.bin 


More information about the wine-patches mailing list