]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
a better fix for notebook page not being refreshed after Delete()
[wxWidgets.git] / src / msw / textctrl.cpp
index 14801b5eace3cd6e5d5fb2fa3646eca434452b4e..a5a89ea845bedda64f34cd81ed43091f07b5bc94 100644 (file)
@@ -1655,6 +1655,8 @@ bool wxTextCtrl::SetForegroundColour(const wxColour& colour)
 // styling support for rich edit controls
 // ----------------------------------------------------------------------------
 
+#if wxUSE_RICHEDIT
+
 bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
 {
     if ( !IsRich() )
@@ -1801,6 +1803,8 @@ bool wxTextCtrl::SetDefaultStyle(const wxTextAttr& style)
     return TRUE;
 }
 
+#endif
+
 // ----------------------------------------------------------------------------
 // wxRichEditModule
 // ----------------------------------------------------------------------------