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

ByeongSik Jeon bsjeon at hanmail.net
Wed Apr 30 01:07:27 CDT 2008


Dmitry Timoshkov wrote:
> "ByeongSik Jeon" <bsjeon at hanmail.net> wrote:
> 
> > The PeekMessage, GetMessage CAN CATCH this WM_KEYDOWN message.
> > I think this problem don't need the test code.
> > This problem is very simple case and clearly.
> 
> This really needs the tests. First to show that this change is really
> correct, second to prevent regressions in future when someone else
> will try to change it.
> 
I have added the test code.
Windows test result: 
---------------------------
msg.c:4096:Message sequences by WM_IME_KEYDOWN
msg.c:6899:CBT: 3 (HCBT_CREATEWND), 007d0320, 0022f7d0
msg.c:6643:WmImeKeydownProcA: 007D0320, 0024, 00000000, 0022f830
msg.c:6643:WmImeKeydownProcA: 007D0320, 0081, 00000000, 0022f810
msg.c:6899:CBT: 3 (HCBT_CREATEWND), 00770366, 0022f7cc
msg.c:6643:WmImeKeydownProcA: 007D0320, 0083, 00000000, 0022f850
msg.c:6643:WmImeKeydownProcA: 007D0320, 0001, 00000000, 0022f810
msg.c:4114:posted message[1]: 007D0320, 0290, 0000000d, 001c0001
msg.c:6643:WmImeKeydownProcA: 007D0320, 0290, 0000000d, 001c0001
msg.c:4114:posted message[2]: 007D0320, 0100, 0000000d, 001c0001
msg.c:6643:WmImeKeydownProcA: 007D0320, 0100, 0000000d, 001c0001
msg.c:4114:posted message[3]: 007D0320, 0102, 0000000d, 001c0001
msg.c:6643:WmImeKeydownProcA: 007D0320, 0102, 0000000d, 001c0001
msg.c:4130:expected 0290 - actual 0290
msg.c:4130:expected 0100 - actual 0100
msg.c:4130:expected 0102 - actual 0102
msg.c:6899:CBT: 4 (HCBT_DESTROYWND), 007d0320, 00000000
msg.c:6643:WmImeKeydownProcA: 007D0320, 0002, 00000000, 00000000
msg.c:6899:CBT: 4 (HCBT_DESTROYWND), 00770366, 00000000
msg.c:6643:WmImeKeydownProcA: 007D0320, 0082, 00000000, 00000000
---------------------------

---
 dlls/user32/defwnd.c    |   12 +++++++-
 dlls/user32/tests/msg.c |   69 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 87c4eef600f5c4522660a74f2cc04bc91e68edb9.diff
Type: text/x-patch
Size: 4435 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080430/aed6cab5/attachment.bin 


More information about the wine-patches mailing list