]> git.saurik.com Git - wxWidgets.git/commitdiff
Make text controls flat under CE.
authorRobert Roebling <robert@roebling.de>
Sat, 17 Apr 2004 22:12:06 +0000 (22:12 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 17 Apr 2004 22:12:06 +0000 (22:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 7b94f8ed30657055422352790891cb341dd3b879..2b9d0b32ed29d67037481fd59104c1a833f7d0b6 100644 (file)
@@ -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;