From ae2d8c34f94f353013ae7e3a2e5b23384c0e782b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Oct 2021 23:34:29 +0100 Subject: [PATCH] Use wxDumpWindow() in trace messages in wxWindow itself Instead of just showing the class name and the window name, show the result of wxDumpWindow() which is similar, but more informative. --- src/common/wincmn.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 2d1e13bb32..d700afb064 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2672,9 +2672,7 @@ void wxWindowBase::SetConstraintSizes(bool recurse) } else if ( constr ) { - wxLogDebug(wxT("Constraints not satisfied for %s named '%s'."), - GetClassInfo()->GetClassName(), - GetName().c_str()); + wxLogDebug(wxT("Constraints not satisfied for %s."), wxDumpWindow(this)); } if ( recurse ) @@ -3340,8 +3338,7 @@ void wxWindowBase::ReleaseMouse() ( wxString::Format ( - "Releasing mouse in %p(%s) but it is not captured", - this, GetClassInfo()->GetClassName() + "Releasing mouse in %s but it is not captured", wxDumpWindow(this) ) ); } @@ -3351,9 +3348,8 @@ void wxWindowBase::ReleaseMouse() ( wxString::Format ( - "Releasing mouse in %p(%s) but it is captured by %p(%s)", - this, GetClassInfo()->GetClassName(), - winCapture, winCapture->GetClassInfo()->GetClassName() + "Releasing mouse in %s but it is captured by %s", + wxDumpWindow(this), wxDumpWindow(winCapture) ) ); }