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/branches/WX_2_8_BRANCH@48062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-08-14 07:26:38 +00:00
parent 3ad3e4b42d
commit b164acb3fe

View File

@@ -499,6 +499,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;
}