X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6dd16e4f26490f1f4f2be1204840cbf4ecf74a35..f35746ceeda33434574d667f81d7e6e8b18b7c46:/src/msw/statline.cpp diff --git a/src/msw/statline.cpp b/src/msw/statline.cpp index 29ee6373e1..510292b151 100644 --- a/src/msw/statline.cpp +++ b/src/msw/statline.cpp @@ -64,7 +64,7 @@ bool wxStaticLine::Create(wxWindow *parent, if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE; - return MSWCreateControl(_T("STATIC"), _T(""), pos, size); + return MSWCreateControl(_T("STATIC"), wxEmptyString, pos, size); } WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const @@ -76,7 +76,12 @@ WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle); // add our default styles - return msStyle | SS_GRAYRECT | SS_SUNKEN | SS_NOTIFY | WS_CLIPSIBLINGS; + msStyle |= SS_SUNKEN | SS_NOTIFY | WS_CLIPSIBLINGS; +#ifndef __WXWINCE__ + msStyle |= SS_GRAYRECT ; +#endif + + return msStyle ; } #endif // wxUSE_STATLINE