]> 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 04cc73d26a5f82ecc0ce76137e22243c4da43f75..4ae10bb7e620a87c0eeb398c12c36087a047298e 100644 (file)
@@ -446,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