From: Julian Smart Date: Tue, 14 Aug 2007 07:26:59 +0000 (+0000) Subject: Fix for non-appearance of themed border with wxTE_RICH if size passed to the construc... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8c56ac83307a8ffc6426c6a983c8065c7f140749 Fix for non-appearance of themed border with wxTE_RICH if size passed to the constructor and then not changed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 974fa7a30d..5b64187e79 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -502,6 +502,14 @@ bool wxTextCtrl::MSWCreateText(const wxString& value, } #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; }