Piotr Caban (@piotr) commented about dlls/user32/tests/win.c:
+ ok(!!parent, "failed to create window, error %lu\n", GetLastError()); + + SetLastError(0xdeadbeef); + hwnd = GetWindow(parent, GW_ENABLEDPOPUP); + ok(!hwnd, "Unexpected value %p.\n", hwnd); + ok(GetLastError() == 0xdeadbeef, "Unexpected error %ld.\n", GetLastError()); + + hwnd2 = CreateWindowA("static", "owned1", WS_OVERLAPPEDWINDOW, 0, 0, 600, 300, parent, 0, 0, NULL); + ok(!!hwnd2, "failed to create window, error %lu\n", GetLastError()); + ok(GetWindow(hwnd2, GW_OWNER) == parent, "Unexpected owner.\n"); + hwnd = GetWindow(parent, GW_ENABLEDPOPUP); + ok(!hwnd, "Unexpected value %p.\n", hwnd); + ShowWindow(hwnd2, SW_SHOW); + hwnd = GetWindow(parent, GW_ENABLEDPOPUP); + todo_wine + ok(hwnd == hwnd2, "Unexpected value %p.\n", hwnd); It doesn't work for disabled windows:
```suggestion:-0+0 ok(hwnd == hwnd2, "Unexpected value %p.\n", hwnd); EnableWindow(hwnd2, FALSE); hwnd = GetWindow(parent, GW_ENABLEDPOPUP); ok(!hwnd, "Unexpected value %p.\n", hwnd); EnableWindow(hwnd2, TRUE); ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9388#note_121075