From 658252ef0ceb59d0a76cf414b7b78d033c16851f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Jan 2005 11:32:14 +0000 Subject: [PATCH] report more information about the control whose creation failed in the assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/control.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/msw/control.cpp b/src/msw/control.cpp index ee938571d0..a99586da5c 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -154,8 +154,13 @@ bool wxControl::MSWCreateControl(const wxChar *classname, if ( !m_hWnd ) { - wxLogDebug(wxT("Failed to create a control of class '%s'"), classname); - wxFAIL_MSG(_T("something is very wrong, CreateWindowEx failed")); +#ifdef __WXDEBUG__ + wxFAIL_MSG(wxString::Format + ( + _T("CreateWindowEx(\"%s\", flags=%08x, ex=%08x) failed"), + classname, style, exstyle + )); +#endif // __WXDEBUG__ return false; } -- 2.50.0