Huw Davies : user32: Trace the full NCCALCSIZE_PARAMS info if present.

Alexandre Julliard julliard at winehq.org
Tue Oct 31 13:16:02 CDT 2017


Module: wine
Branch: master
Commit: 05e40aa67ddf4b570e0e549c0a000ea2dafd019f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=05e40aa67ddf4b570e0e549c0a000ea2dafd019f

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Oct 30 10:29:14 2017 +0000

user32: Trace the full NCCALCSIZE_PARAMS info if present.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/spy.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/dlls/user32/spy.c b/dlls/user32/spy.c
index ff80051..9fb7307 100644
--- a/dlls/user32/spy.c
+++ b/dlls/user32/spy.c
@@ -2479,9 +2479,20 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
             }
             break;
         case WM_NCCALCSIZE:
+            if (!sp_e->wParam)
             {
                 RECT *rc = (RECT *)sp_e->lParam;
-                TRACE("Rect (%s)\n", wine_dbgstr_rect(rc));
+                TRACE("Rect %s\n", wine_dbgstr_rect(rc));
+            }
+            else
+            {
+                NCCALCSIZE_PARAMS *nc = (NCCALCSIZE_PARAMS *)sp_e->lParam;
+                TRACE("Rects %s %s %s\n", wine_dbgstr_rect(nc->rgrc),
+                      wine_dbgstr_rect(nc->rgrc + 1), wine_dbgstr_rect(nc->rgrc + 2));
+                if (nc->lppos)
+                    TRACE("WINDOWPOS hwnd=%p, after=%p, at (%d,%d) w=%d h=%d, flags=0x%08x\n",
+                          nc->lppos->hwnd, nc->lppos->hwndInsertAfter, nc->lppos->x, nc->lppos->y,
+                          nc->lppos->cx, nc->lppos->cy, nc->lppos->flags);
             }
             break;
         case WM_NOTIFY:




More information about the wine-cvs mailing list