X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..3826db3ef5fc3ac97fb91aa11eb2381b2c96248d:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index d78787b1e9..5e2d82f92b 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -29,7 +29,7 @@ #include "wx/generic/statusbr.h" -#ifdef __WINDOWS__ +#ifdef __WXMSW__ #include #ifdef DrawText @@ -94,7 +94,7 @@ bool wxStatusBar::Create(wxWindow *parent, wxWindowID id, return success; } -void wxStatusBar::SetFieldsCount(int number, int *widths) +void wxStatusBar::SetFieldsCount(int number, const int widths[]) { m_nFields = number; @@ -123,7 +123,7 @@ void wxStatusBar::SetStatusText(const wxString& text, int number) Refresh(); -#ifdef __WINDOWS__ +#ifdef __WXMSW__ // For some reason, this can cause major GDI problems - graphics // all over the place. E.g. in print previewing. // ::UpdateWindow((HWND) GetHWND()); @@ -138,7 +138,7 @@ wxString wxStatusBar::GetStatusText(int n) const return m_statusStrings[n]; } -void wxStatusBar::SetStatusWidths(int n, int *widths_field) +void wxStatusBar::SetStatusWidths(int n, const int widths_field[]) { // only set status widths, when n == number of statuswindows if (n == m_nFields)