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:
parent
e0b9ad2982
commit
983d2e1414
@ -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
|
||||
(
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user