"Anatoly Lyutin" vostok@etersoft.ru wrote:
It doesn't matter for a hook if a window is visible or not,
How I can see from this test - it is matter:
/* SetFocus( hwnd ) Invisible parent, visible child */ static const struct message SetFocusSeq_5[] = { { HCBT_SETFOCUS, hook }, { HCBT_ACTIVATE, hook }, { WM_WINDOWPOSCHANGING, sent|wparam, SWP_NOSIZE|SWP_NOMOVE },
...
and
/* SetFocus( hwnd ) Invisible parent, invisible child */ static const struct message SetFocusSeq_8[] = { { HCBT_SETFOCUS, hook }, { WM_IME_SETCONTEXT, sent|wparam|optional, 1 },
Am I wrong?
I know a little about hooks :(.
Looks like you need a test for window activation, not focus or hooks. You may try to add some missing bits to win.c,test_SetActiveWindow().
so the behaviour you are trying to figure out is not useful for a test IMO.
It may to be true, but I have seen a difference from message sequences in Windows and Wine. Only this have motivated me to post this test in wine-patches list.
Are you trying to fix a bug?