Hi, I've noticed, a wrong behavior in a simple program that has a grid implementation. Basically you can move around the grid with the direction keys. If you press enter, the cell lets you enter text. (just as excel works.). Also a mouse click on the cell does the same thing. The problem is that when you write something into the cell then you cannot move around the grid with the arrows anymore. (the GetFocus() function returns "nil" everytime you hit a arrow key...) To make the grid work again a mouse click out of the cell is necessary.
I'd like to try and fix this, what have I to start with first ? Maybe it's the edit control ?
PS: part of the strace log is attacched.
trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event ButtonRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x20048 trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x20048 trace:event:EVENT_ProcessEvent returns. trace:win:WIN_CreateWindowEx (null) "EDIT" ex=00000000 style=50000000 122,136 55x12 parent=0x20048 menu=(nil) inst=0x400000 params=(nil) trace:win:dump_window_styles style: WS_CHILD WS_VISIBLE trace:win:dump_window_styles exstyle: trace:win:WIN_CreateWindowEx winproc type is 2 (WIN_PROC_32A) trace:win:WIN_SetWindowLong 0x30046 -12 0 3 trace:edit:EditWndProc_common hwnd=0x30046 msg=81 (WM_NCCREATE) wparam=0 lparam=4061eb3c trace:edit:EDIT_WM_NCCreate Creating ANSI edit control, style = 50000000 trace:win:WIN_SetWindowLong 0x30046 0 40378cf0 3 trace:edit:EditWndProc_common hwnd=0x30046 msg=83 (WM_NCCALCSIZE) wparam=0 lparam=4061e93c trace:edit:EditWndProc_common hwnd=0x30046 msg=83 (WM_NCCALCSIZE) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=1 (WM_CREATE) wparam=0 lparam=4061eb3c trace:edit:EDIT_WM_Create (null) trace:edit:EDIT_EM_SetMargins left=0, right=0 trace:edit:EDIT_SetCaretPos 0 - 0x0 trace:edit:EditWndProc_common hwnd=0x30046 msg=1 (WM_CREATE) -- 0x00000001 trace:edit:EditWndProc_common hwnd=0x30046 msg=5 (WM_SIZE) wparam=0 lparam=c0037 trace:edit:EDIT_WM_Size width = 55, height = 12 trace:edit:EDIT_SetCaretPos 0 - 0x0 trace:edit:EditWndProc_common hwnd=0x30046 msg=5 (WM_SIZE) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=3 (WM_MOVE) wparam=0 lparam=88007a trace:edit:EditWndProc_common hwnd=0x30046 msg=3 (WM_MOVE) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=18 (WM_SHOWWINDOW) wparam=1 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=18 (WM_SHOWWINDOW) -- 0x00000000 trace:win:SetWindowPos hwnd 0x30046, after (nil), 0,0 (0x0), flags 00000057 trace:win:dump_winpos_flags flags: SWP_NOSIZE SWP_NOMOVE SWP_NOZORDER SWP_NOACTIVATE SWP_SHOWWINDOW trace:edit:EditWndProc_common hwnd=0x30046 msg=46 (WM_WINDOWPOSCHANGING) wparam=0 lparam=4061e8cc trace:edit:EditWndProc_common hwnd=0x30046 msg=46 (WM_WINDOWPOSCHANGING) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=47 (WM_WINDOWPOSCHANGED) wparam=0 lparam=4061e8cc trace:edit:EditWndProc_common hwnd=0x30046 msg=47 (WM_WINDOWPOSCHANGED) -- 0x00000000 trace:win:WIN_CreateWindowEx created window 0x30046 trace:win:WIN_SetWindowLong 0x30046 -4 6023f150 2 trace:win:WINPROC_AllocProc reusing 0x40720ac0 for 0x6023f150/2 trace:edit:EditWndProc_common hwnd=0x30046 msg=30 (WM_SETFONT) wparam=12be lparam=0 trace:edit:EDIT_EM_SetMargins left=1, right=1 trace:edit:EDIT_SetCaretPos 0 - 1x0 trace:edit:EditWndProc_common hwnd=0x30046 msg=30 (WM_SETFONT) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=d3 (EM_SETMARGINS) wparam=3 lparam=0 trace:edit:EDIT_EM_SetMargins left=0, right=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=d3 (EM_SETMARGINS) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=c (WM_SETTEXT) wparam=0 lparam=40364be0 trace:edit:EDIT_WM_SetText L"" trace:edit:EDIT_EM_ReplaceSel L"", can_undo 0, send_update 0 trace:edit:EDIT_WM_SetText notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EDIT_WM_SetText notification EN_UPDATE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=c (WM_SETTEXT) -- 0x00000001 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:win:SetFocus 0x30046 prev 0x20048 trace:win:RedrawWindow 0x20048 rect (117,130)-(182,154) flags: RDW_INVALIDATE trace:win:SetFocus 0x30046 prev 0x30046 trace:edit:EditWndProc_common hwnd=0x30046 msg=b1 (EM_SETSEL) wparam=0 lparam=ffffffff trace:edit:EditWndProc_common hwnd=0x30046 msg=b1 (EM_SETSEL) -- 0x00000001 trace:edit:EditWndProc_common hwnd=0x30046 msg=7 (WM_SETFOCUS) wparam=20048 lparam=0 trace:edit:EDIT_SetCaretPos 0 - 1x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_WM_SetFocus notification EN_SETFOCUS sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=7 (WM_SETFOCUS) -- 0x00000000 trace:win:RedrawWindow 0x20048 rect (117,130)-(182,154) flags: RDW_INVALIDATE trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=46 lparam=210001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) wparam=66 lparam=210001 trace:edit:EDIT_EM_ReplaceSel L"f", can_undo 1, send_update 1 trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 0, strl 1, selstart 0 ('L""'), text 'L""') trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x20048 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:edit:EDIT_SetCaretPos 1 - 4x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=44 lparam=200001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) wparam=64 lparam=200001 trace:edit:EDIT_EM_ReplaceSel L"d", can_undo 1, send_update 1 trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 1, strl 1, selstart 1 ('L""'), text 'L"f"') trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x20048 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:edit:EDIT_SetCaretPos 2 - 11x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) -- 0x00000000 trace:win:RedrawWindow 0x3002e whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:win:BeginPaint hdc = 0x9e0 box = (129,149 - 184,161), fErase = 0 trace:win:RedrawWindow 0x30030 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:win:GetWindowRect hwnd 0x30030 (318,101)-(798,401) trace:win:BeginPaint hdc = 0x9e0 box = (129,149 - 184,161), fErase = 0 trace:win:RedrawWindow 0x20048 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:BeginPaint hdc = 0x9e0 box = (117,130 - 182,154), fErase = 0 trace:win:RedrawWindow 0x30046 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=85 (WM_NCPAINT) wparam=1 lparam=0 trace:win:GetWindowRect hwnd 0x30046 (447,250)-(502,262) trace:edit:EditWndProc_common hwnd=0x30046 msg=85 (WM_NCPAINT) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) wparam=74 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) -- 0xffffffff trace:win:BeginPaint hdc = 0x74 box = (0,0 - 55,12), fErase = 0 trace:edit:EDIT_PaintLine line=0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=47 lparam=220001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) wparam=67 lparam=220001 trace:edit:EDIT_EM_ReplaceSel L"g", can_undo 1, send_update 1 trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 2, strl 1, selstart 2 ('L""'), text 'L"fd"') trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x20048 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:edit:EDIT_SetCaretPos 3 - 18x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) -- 0x00000000 trace:win:RedrawWindow 0x30046 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) wparam=9e0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) -- 0xffffffff trace:win:BeginPaint hdc = 0x9e0 box = (0,0 - 55,12), fErase = 0 trace:edit:EDIT_PaintLine line=0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) wparam=46 lparam=c0210001 trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) wparam=44 lparam=c0200001 trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) wparam=47 lparam=c0220001 trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=44 lparam=200001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) wparam=64 lparam=200001 trace:edit:EDIT_EM_ReplaceSel L"d", can_undo 1, send_update 1 trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 3, strl 1, selstart 3 ('L""'), text 'L"fdg"') trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x20048 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:edit:EDIT_SetCaretPos 4 - 25x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) -- 0x00000000 trace:win:RedrawWindow 0x30046 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) wparam=74 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) -- 0xffffffff trace:win:BeginPaint hdc = 0x74 box = (0,0 - 55,12), fErase = 0 trace:edit:EDIT_PaintLine line=0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=46 lparam=210001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) wparam=66 lparam=210001 trace:edit:EDIT_EM_ReplaceSel L"f", can_undo 1, send_update 1 trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 4, strl 1, selstart 4 ('L""'), text 'L"fdgd"') trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x20048 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:edit:EDIT_SetCaretPos 5 - 28x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) -- 0x00000000 trace:win:RedrawWindow 0x30046 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) wparam=9e0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) -- 0xffffffff trace:win:BeginPaint hdc = 0x9e0 box = (0,0 - 55,12), fErase = 0 trace:edit:EDIT_PaintLine line=0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=47 lparam=220001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) wparam=67 lparam=220001 trace:edit:EDIT_EM_ReplaceSel L"g", can_undo 1, send_update 1 trace:edit:EDIT_EM_ReplaceSel inserting stuff (tl 5, strl 1, selstart 5 ('L""'), text 'L"fdgdf"') trace:edit:EDIT_UpdateText notification EN_UPDATE sent to hwnd=0x20048 trace:win:RedrawWindow 0x30046 whole window flags: RDW_INVALIDATE RDW_ERASE trace:edit:EDIT_SetCaretPos 6 - 35x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_EM_ReplaceSel notification EN_CHANGE sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=102 (WM_CHAR) -- 0x00000000 trace:win:RedrawWindow 0x30046 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) wparam=74 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=14 (WM_ERASEBKGND) -- 0xffffffff trace:win:BeginPaint hdc = 0x74 box = (0,0 - 55,12), fErase = 0 trace:edit:EDIT_PaintLine line=0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EditWndProc_common hwnd=0x30046 msg=f (WM_PAINT) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) wparam=46 lparam=c0210001 trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) wparam=44 lparam=c0200001 trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) wparam=47 lparam=c0220001 trace:edit:EditWndProc_common hwnd=0x30046 msg=101 (WM_KEYUP) -- 0x00000000 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=0x30046 trace:event:EVENT_ProcessEvent returns. trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) wparam=d lparam=1c0001 trace:edit:EditWndProc_common hwnd=0x30046 msg=100 (WM_KEYDOWN) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=d (WM_GETTEXT) wparam=800 lparam=40364be0 trace:edit:EditWndProc_common hwnd=0x30046 msg=d (WM_GETTEXT) -- 0x00000006 trace:win:DestroyWindow (0x30046) trace:edit:EditWndProc_common hwnd=0x30046 msg=18 (WM_SHOWWINDOW) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=18 (WM_SHOWWINDOW) -- 0x00000000 trace:win:SetWindowPos hwnd 0x30046, after (nil), 0,0 (0x0), flags 00000097 trace:win:dump_winpos_flags flags: SWP_NOSIZE SWP_NOMOVE SWP_NOZORDER SWP_NOACTIVATE SWP_HIDEWINDOW trace:edit:EditWndProc_common hwnd=0x30046 msg=46 (WM_WINDOWPOSCHANGING) wparam=0 lparam=4061ec18 trace:edit:EditWndProc_common hwnd=0x30046 msg=46 (WM_WINDOWPOSCHANGING) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=47 (WM_WINDOWPOSCHANGED) wparam=0 lparam=4061ec18 trace:edit:EditWndProc_common hwnd=0x30046 msg=47 (WM_WINDOWPOSCHANGED) -- 0x00000000 trace:win:SetFocus 0x20048 prev 0x30046 trace:edit:EditWndProc_common hwnd=0x30046 msg=8 (WM_KILLFOCUS) wparam=20048 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=8 (WM_KILLFOCUS) -- 0x00000000 trace:win:RedrawWindow 0x20048 rect (117,130)-(182,154) flags: RDW_INVALIDATE trace:win:SetFocus 0x30046 prev 0x20048 trace:win:RedrawWindow 0x20048 rect (117,130)-(182,154) flags: RDW_INVALIDATE trace:win:SetFocus 0x30046 prev 0x30046 trace:edit:EditWndProc_common hwnd=0x30046 msg=b1 (EM_SETSEL) wparam=0 lparam=ffffffff trace:edit:EDIT_SetCaretPos 6 - 35x0 trace:edit:EditWndProc_common hwnd=0x30046 msg=b1 (EM_SETSEL) -- 0x00000001 trace:edit:EditWndProc_common hwnd=0x30046 msg=7 (WM_SETFOCUS) wparam=20048 lparam=0 trace:edit:EDIT_SetCaretPos 6 - 35x0 trace:win:WINPROC_AllocProc reusing 0x40720aac for 0x406959e8/2 trace:edit:EDIT_WM_SetFocus notification EN_SETFOCUS sent to hwnd=0x20048 trace:edit:EditWndProc_common hwnd=0x30046 msg=7 (WM_SETFOCUS) -- 0x00000000 trace:edit:EditWndProc_common hwnd=0x30046 msg=2 (WM_DESTROY) wparam=0 lparam=0 trace:win:WIN_DestroyWindow 0x30046 trace:edit:EditWndProc_common hwnd=0x30046 msg=82 (WM_NCDESTROY) wparam=0 lparam=0 trace:edit:EditWndProc_common hwnd=0x30046 msg=82 (WM_NCDESTROY) -- 0x00000000 trace:win:RedrawWindow 0x20048 rect (117,130)-(182,154) flags: RDW_INVALIDATE trace:win:RedrawWindow 0x3002e whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:win:BeginPaint hdc = 0x74 box = (129,149 - 184,161), fErase = 0 trace:win:RedrawWindow 0x30030 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:win:GetWindowRect hwnd 0x30030 (318,101)-(798,401) trace:win:BeginPaint hdc = 0x74 box = (129,149 - 184,161), fErase = 0 trace:win:RedrawWindow 0x20048 whole window flags: RDW_NOINTERNALPAINT RDW_NOCHILDREN trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:BeginPaint hdc = 0x74 box = (117,130 - 182,154), fErase = 0 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyRelease for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event MotionNotify for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:WINPOS_WindowFromPoint scope 0x3002e (463,246) returning 0x20048 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event MotionNotify for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:WINPOS_WindowFromPoint scope 0x3002e (469,226) returning 0x20048 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event MotionNotify for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:WINPOS_WindowFromPoint scope 0x3002e (473,198) returning 0x20048 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event MotionNotify for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:WINPOS_WindowFromPoint scope 0x3002e (475,168) returning 0x20048 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event MotionNotify for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:win:GetWindowRect hwnd 0x20048 (324,113)-(792,304) trace:win:WINPOS_WindowFromPoint scope 0x3002e (473,136) returning 0x20048 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event MotionNotify for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_ProcessEvent returns. trace:win:GetWindowRect hwnd 0x30030 (318,101)-(798,401) trace:win:WINPOS_WindowFromPoint scope 0x3002e (471,102) returning 0x30030 trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event FocusOut for hwnd/window 0x3002e/3c00043, GetFocus()=(nil) trace:event:EVENT_FocusOut win 0x3002e xwin 3c00043 detail=NotifyNonlinear trace:event:EVENT_FocusOut lost focus, setting fg to 0 trace:win:SetForegroundWindow (nil) trace:event:EVENT_ProcessEvent returns.