]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
don't derive wxHtmlTag and wxHtmlTagsCache from wxObject, it's useless
[wxWidgets.git] / src / msw / textctrl.cpp
index 974fa7a30d37309c3ef3fe47f7de7f0f0b84b8a4..5b64187e79a2e242fc049b760eb1e760a7b5a2f6 100644 (file)
@@ -502,6 +502,14 @@ bool wxTextCtrl::MSWCreateText(const wxString& value,
     }
 #endif // wxUSE_RICHEDIT
 
     }
 #endif // wxUSE_RICHEDIT
 
+#ifndef __WXWINCE__
+    // Without this, if we pass the size in the constructor and then don't change it,
+    // the themed borders will be drawn incorrectly.
+    SetWindowPos(GetHwnd(), NULL, 0, 0, 0, 0,
+                SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|
+                SWP_FRAMECHANGED);
+#endif
+
     return true;
 }
 
     return true;
 }