X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da80ae712a30132bf19127db544959db7e1a7b52..68c957045a3919d9ac241a1e775c233bb6d1a793:/src/mac/classic/statbrma.cpp diff --git a/src/mac/classic/statbrma.cpp b/src/mac/classic/statbrma.cpp index 091ac2b1aa..5bb50e0518 100644 --- a/src/mac/classic/statbrma.cpp +++ b/src/mac/classic/statbrma.cpp @@ -9,6 +9,9 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- @@ -17,16 +20,15 @@ #ifndef WX_PRECOMP #include "wx/dc.h" + #include "wx/dcclient.h" #endif -#include "wx/dcclient.h" - BEGIN_EVENT_TABLE(wxStatusBarMac, wxStatusBarGeneric) EVT_PAINT(wxStatusBarMac::OnPaint) END_EVENT_TABLE() #ifdef __WXMAC__ -#include "wx/mac/private.h" + #include "wx/mac/private.h" #endif // ============================================================================ @@ -89,14 +91,14 @@ void wxStatusBarMac::DrawField(wxDC& dc, int i) void wxStatusBarMac::SetStatusText(const wxString& text, int number) { wxCHECK_RET( (number >= 0) && (number < m_nFields), - _T("invalid status bar field index") ); + _T("invalid status bar field index") ); m_statusStrings[number] = text; wxRect rect; GetFieldRect(number, rect); rect.y=0; rect.height = m_height ; - Refresh( TRUE , &rect ) ; + Refresh( true , &rect ) ; Update(); } @@ -150,6 +152,6 @@ void wxStatusBarMac::OnPaint(wxPaintEvent& WXUNUSED(event) ) void wxStatusBarMac::MacSuperEnabled( bool enabled ) { - Refresh(FALSE) ; + Refresh(false) ; wxWindow::MacSuperEnabled( enabled ) ; }