More style fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2003-05-26 22:59:24 +00:00
parent e0b9ad2982
commit 983d2e1414
2 changed files with 9 additions and 1 deletions

View File

@ -98,7 +98,9 @@ bool wxSlider95::Create(wxWindow *parent, wxWindowID id,
msStyle |= SS_CENTER;
WXDWORD exStyle = 0;
msStyle |= MSWGetStyle(GetWindowStyle(), & exStyle) ;
long valueStyle = m_windowStyle & ~wxBORDER_MASK;
valueStyle |= wxBORDER_SUNKEN;
msStyle |= MSWGetStyle(valueStyle, & exStyle) ;
m_staticValue = (WXHWND) CreateWindowEx
(

View 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;