1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

#160 log WM_WINDOWPOSCHANGING

This commit is contained in:
FunkyFr3sh 2023-08-17 14:17:36 +02:00
parent 38e17b0720
commit 0458b765ac

View File

@ -479,11 +479,16 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
}
case WM_WINDOWPOSCHANGING:
{
WINDOWPOS* pos = (WINDOWPOS*)lParam;
dbg_dump_swp_flags(pos->flags);
TRACE(
" hwndInsertAfter=%p, x=%d, y=%d, cx=%d, cy=%d\n",
pos->hwndInsertAfter, pos->x, pos->y, pos->cx, pos->cy);
/* workaround for a bug where sometimes a background window steals the focus */
if (g_mouse_locked)
{
WINDOWPOS* pos = (WINDOWPOS*)lParam;
if (pos->flags == SWP_NOMOVE + SWP_NOSIZE)
{
mouse_unlock();