[PATCH resend] user32: Send a WM_ACTIVATE message after restoring a minimized window.

Zhiyi Zhang zzhang at codeweavers.com
Wed Sep 4 22:43:57 CDT 2019



On 9/4/19 9:00 PM, Dmitry Timoshkov wrote:
> Zhiyi Zhang <zzhang at 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




More information about the wine-devel mailing list