X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a01bb1bce4aedbbdb6b705b0fababd01b918cb0..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/statline.cpp diff --git a/src/msw/statline.cpp b/src/msw/statline.cpp index 088e4e2d39..ea49fcdcbb 100644 --- a/src/msw/statline.cpp +++ b/src/msw/statline.cpp @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statline.h" #endif @@ -47,6 +47,10 @@ // ============================================================================ IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl) +/* + TODO PROPERTIES : + style (wxLI_HORIZONTAL) +*/ // ---------------------------------------------------------------------------- // wxStaticLine @@ -64,7 +68,7 @@ bool wxStaticLine::Create(wxWindow *parent, if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE; - return MSWCreateControl(_T("STATIC"), _T(""), pos, size, style); + return MSWCreateControl(_T("STATIC"), wxEmptyString, pos, size); } WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const @@ -76,7 +80,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