From 85350c8c95fd191444b9b47c5b8c0356ce8f5f9c Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 27 Aug 2002 01:14:44 +0000 Subject: [PATCH] Dump SetWindowPos flags. --- windows/winpos.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/windows/winpos.c b/windows/winpos.c index 98b8bd37ae8..f27fdea6b52 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -1516,6 +1516,46 @@ LONG WINPOS_HandleWindowPosChanging( HWND hwnd, WINDOWPOS *winpos ) } +/*********************************************************************** + * dump_winpos_flags + */ +static void dump_winpos_flags(UINT flags) +{ + TRACE("flags:"); + if(flags & SWP_NOSIZE) DPRINTF(" SWP_NOSIZE"); + if(flags & SWP_NOMOVE) DPRINTF(" SWP_NOMOVE"); + if(flags & SWP_NOZORDER) DPRINTF(" SWP_NOZORDER"); + if(flags & SWP_NOREDRAW) DPRINTF(" SWP_NOREDRAW"); + if(flags & SWP_NOACTIVATE) DPRINTF(" SWP_NOACTIVATE"); + if(flags & SWP_FRAMECHANGED) DPRINTF(" SWP_FRAMECHANGED"); + if(flags & SWP_SHOWWINDOW) DPRINTF(" SWP_SHOWWINDOW"); + if(flags & SWP_HIDEWINDOW) DPRINTF(" SWP_HIDEWINDOW"); + if(flags & SWP_NOCOPYBITS) DPRINTF(" SWP_NOCOPYBITS"); + if(flags & SWP_NOOWNERZORDER) DPRINTF(" SWP_NOOWNERZORDER"); + if(flags & SWP_NOSENDCHANGING) DPRINTF(" SWP_NOSENDCHANGING"); + if(flags & SWP_DEFERERASE) DPRINTF(" SWP_DEFERERASE"); + if(flags & SWP_ASYNCWINDOWPOS) DPRINTF(" SWP_ASYNCWINDOWPOS"); + +#define DUMPED_FLAGS \ + (SWP_NOSIZE | \ + SWP_NOMOVE | \ + SWP_NOZORDER | \ + SWP_NOREDRAW | \ + SWP_NOACTIVATE | \ + SWP_FRAMECHANGED | \ + SWP_SHOWWINDOW | \ + SWP_HIDEWINDOW | \ + SWP_NOCOPYBITS | \ + SWP_NOOWNERZORDER | \ + SWP_NOSENDCHANGING | \ + SWP_DEFERERASE | \ + SWP_ASYNCWINDOWPOS) + + if(flags & ~DUMPED_FLAGS) DPRINTF(" %08x", flags & ~DUMPED_FLAGS); + DPRINTF("\n"); +#undef DUMPED_FLAGS +} + /*********************************************************************** * SetWindowPos (USER32.@) */ @@ -1524,6 +1564,10 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter, { WINDOWPOS winpos; + TRACE("hwnd %x, after %x, %d,%d (%dx%d), flags %08x\n", + hwnd, hwndInsertAfter, x, y, cx, cy, flags); + if(TRACE_ON(win)) dump_winpos_flags(flags); + winpos.hwnd = hwnd; winpos.hwndInsertAfter = hwndInsertAfter; winpos.x = x;