]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
don't include wx/popupwin.h in the header, use forward declarations
[wxWidgets.git] / src / msw / control.cpp
index ee938571d023a9d2b4b87f228169718fffe4929d..a99586da5cb033cb7b65ce79cf15b049e8af96ee 100644 (file)
@@ -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;
     }