[PATCH 3/5] user32: Trace the full NCCALCSIZE_PARAMS info if present.
Huw Davies <[email protected]>
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Huw Davies <[email protected]> --- 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 ff8005194d..9fb73077c5 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: -- 2.12.0