]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
removed wxFunction
[wxWidgets.git] / src / msw / stattext.cpp
index 0da7ce60b3feec6ce3c08e1e2e322c6c54c1992f..5248292eeaff588b209df192e28bceab91bb3762 100644 (file)
@@ -42,6 +42,10 @@ bool wxStaticText::Create(wxWindow *parent,
                           long style,
                           const wxString& name)
 {
+    // By default, a static text should have no border.
+    if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT)
+        style |= wxBORDER_NONE;
+
     if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
         return FALSE;