Rémi Bernon (@rbernon) commented about dlls/user32/tests/win.c:
- todo_wine ok(GetLastError() == 0xdeadbeef, "Last error unexpectedly set to %#lx\n", GetLastError());
- while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
- {
TranslateMessage(&msg);
DispatchMessageW(&msg);
- }
- message_window_topmost_hwnd_msg = NULL;
- ret = GetWindowRect(hwnd_msg, &rect);
- ok(ret, "Unexpected failure when calling GetWindowRect()\n");
- todo_wine ok(rect.left == 220 && rect.top == 221 && rect.right == 220 + 222 && rect.bottom == 221 + 223,
"Unexpected rectangle %s\n", wine_dbgstr_rect(&rect));
- message_window_topmost_received_killfocus = FALSE;
```suggestion:-0+0 ok(!message_window_topmost_received_killfocus, "Received WM_KILLFOCUS\n"); message_window_topmost_received_killfocus = FALSE; ```
And the window proc would be something simple like:
``` static BOOL message_window_topmost_received_killfocus;
static LRESULT WINAPI message_window_topmost_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { if (msg == WM_KILLFOCUS) message_window_topmost_received_killfocus = TRUE; return DefWindowProcW(hwnd, msg, wparam, lparam); } ```