Rémi Bernon (@rbernon) commented about dlls/user32/tests/win.c:
+ HWND hwnd, traywnd; + + if (!(traywnd = FindWindowA( "Shell_TrayWnd", NULL ))) + { + skip( "Shell_TrayWnd not found, skipping tests.\n" ); + return; + } + + hwnd = CreateWindowW( L"static", L"parent", WS_OVERLAPPEDWINDOW|WS_VISIBLE, + 100, 100, 200, 200, 0, 0, 0, NULL ); + ok( !!hwnd, "failed, error %lu.\n", GetLastError() ); + flush_events( TRUE ); + + ok( !IsIconic( hwnd ), "window is minimized.\n" ); + + SendMessageA( traywnd, WM_COMMAND, 419, 0xdeadbeef ); Maybe we could have a `#define TRAY_MINIMIZE_ALL` for the 419, duplicated there and in explorer, so that grepping it can be easier?
Fwiw there's also 416 that is apparently used to undo the minimization. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5025#note_60174