]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tglbtn.cpp
xti additions / changes, trying to reduce dependencies
[wxWidgets.git] / src / msw / tglbtn.cpp
index cac34b1ac94b93674b2e608ea037b79cf29b37ce..b73b9aa4ebd4bfe5877bc3ff668c5e9ad7376d99 100644 (file)
@@ -73,6 +73,12 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
                             const wxValidator& validator,
                             const wxString& name)
 {
+    // default border for this control is none
+    if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
+    {
+        style |= wxBORDER_NONE;
+    }
+    
    if (!CreateBase(parent, id, pos, size, style, validator, name))
       return FALSE;