#ifdef __WXMSW__
#include <windows.h>
-
-#ifdef DrawText
-#undef DrawText
-#endif
-
+#include "wx/msw/winundef.h"
#endif
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStatusBar, wxWindow)
BEGIN_EVENT_TABLE(wxStatusBar, wxWindow)
EVT_PAINT(wxStatusBar::OnPaint)
EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged)
END_EVENT_TABLE()
-#endif
// Default status border dimensions
#define wxTHICK_LINE_BORDER 2
bool success = wxWindow::Create(parent, id, pos, size, style | wxTAB_TRAVERSAL, name);
// Don't wish this to be found as a child
+#ifndef __WXMAC__
parent->GetChildren().DeleteObject(this);
-
+#endif
InitColours();
SetFont(m_defaultStatusBarFont);
int xpos = rect.x + leftMargin;
int ypos = (int) (((rect.height - y) / 2 ) + rect.y + 0.5) ;
-#ifdef __WXGTK__
+#if defined( __WXGTK__ ) || defined(__WXMAC__)
xpos++;
ypos++;
#endif