]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxLogLastError() to show the last error value when reporting failure to create...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2008 23:38:57 +0000 (23:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2008 23:38:57 +0000 (23:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/control.cpp

index fa9989fb1cf011fe81d970f09248f66576c35098..d4ae78000acbcb3eeae043bcf98db54132aac22f 100644 (file)
@@ -153,11 +153,11 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
     if ( !m_hWnd )
     {
 #ifdef __WXDEBUG__
     if ( !m_hWnd )
     {
 #ifdef __WXDEBUG__
-        wxFAIL_MSG(wxString::Format
-                   (
-                    _T("CreateWindowEx(\"%s\", flags=%08x, ex=%08x) failed"),
-                    classname, (unsigned int)style, (unsigned int)exstyle
-                   ));
+        wxLogLastError(wxString::Format
+                       (
+                        _T("CreateWindowEx(\"%s\", flags=%08lx, ex=%08lx)"),
+                        classname, style, exstyle
+                       ));
 #endif // __WXDEBUG__
 
         return false;
 #endif // __WXDEBUG__
 
         return false;