// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "statline.h"
#endif
// ============================================================================
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
+/*
+ TODO PROPERTIES :
+ style (wxLI_HORIZONTAL)
+*/
// ----------------------------------------------------------------------------
// wxStaticLine
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
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