On 9/4/19 9:00 PM, Dmitry Timoshkov wrote:
Zhiyi Zhang zzhang@codeweavers.com wrote:
The message sequences in tests clearly show that there is a WM_ACTIVATE message at the end of ShowWindow() call for restoring a minimized window.
I think that I already commented on this: activation is the result of the SetFocus() call.
If a window is not activated when calling SetFocus, SetFocus will indeed activate the window and thus send a WM_ACTIVATE message. However the window tested here is already activated. So SetFocus no longer send a WM_ACTIVATE message. Otherwise, dlls/user32/tests/msg.c#L16868 message sequence WmSetFocus_2 should be incomplete and contain a WM_ACTIVATE message.
Thanks, Zhiyi