]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
check that we do have scrollbars before using them to avoid crashes when SetScrollXXX...
[wxWidgets.git] / src / msw / textctrl.cpp
index 8e7fd4e662242b5ac82f37ada1e45de40be5555a..4ae10bb7e620a87c0eeb398c12c36087a047298e 100644 (file)
@@ -37,6 +37,7 @@
     #include "wx/menu.h"
     #include "wx/math.h"
     #include "wx/module.h"
+    #include "wx/wxcrtvararg.h"
 #endif
 
 #include "wx/sysopt.h"
@@ -445,7 +446,7 @@ bool wxTextCtrl::MSWCreateText(const wxString& value,
         valueWin = value;
     }
 
-    if ( !MSWCreateControl(windowClass, msStyle, pos, size, valueWin) )
+    if ( !MSWCreateControl(windowClass.wx_str(), msStyle, pos, size, valueWin) )
         return false;
 
 #if wxUSE_RICHEDIT