X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3d9123c6968b452a95133c635069d6f7ae8ea5..6afa47d63d56094958ed4d2528bf45ad67340954:/src/msw/tglbtn.cpp diff --git a/src/msw/tglbtn.cpp b/src/msw/tglbtn.cpp index d98f6bced5..b73b9aa4eb 100644 --- a/src/msw/tglbtn.cpp +++ b/src/msw/tglbtn.cpp @@ -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; @@ -87,13 +93,8 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, WXDWORD exStyle = 0; long msStyle = MSWGetStyle(style, & exStyle) ; - - msStyle |= BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_TABSTOP ; -/* - if ( m_windowStyle & wxCLIP_SIBLINGS ) - msStyle |= WS_CLIPSIBLINGS; -*/ + msStyle |= BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_TABSTOP ; #ifdef __WIN32__ if(m_windowStyle & wxBU_LEFT)