git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20743
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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
(
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;