From 3d4ea84bd9652c78428b38b2811cd11dcb4a5254 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 17 Apr 2004 22:12:06 +0000 Subject: [PATCH] Make text controls flat under CE. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 7b94f8ed30..2b9d0b32ed 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -239,6 +239,11 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { +#ifdef __WXWINCE__ + if ((style & wxBORDER_MASK) == 0) + style |= wxBORDER_SIMPLE; +#endif + // base initialization if ( !CreateBase(parent, id, pos, size, style, validator, name) ) return FALSE;