X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/608eeb0f24383e1ab3d6cccc0e9e9bf29e1beef1..18d2e17080a0bea4b85e0ad7223cfc6bcdab0e1e:/src/msw/statbr95.cpp?ds=sidebyside diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index 9a15d4d1f7..a3c3bdb670 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -36,8 +36,8 @@ #include "wx/msw/private.h" #include -#if !defined(__GNUWIN32__) || defined(__TWIN32__) || defined(wxUSE_NORLANDER_HEADERS) -#include +#if !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) + #include #endif // ---------------------------------------------------------------------------- @@ -65,7 +65,8 @@ END_EVENT_TABLE() // // ---------------------------------------------------------------------------- -static WNDPROC gs_wndprocStatBar = NULL; +// static WNDPROC gs_wndprocStatBar = NULL; +static WXFARPROC gs_wndprocStatBar = (WXFARPROC) NULL; LRESULT APIENTRY wxStatusBarProc(HWND hwnd, UINT message, @@ -78,7 +79,7 @@ LRESULT APIENTRY wxStatusBarProc(HWND hwnd, sb->MSWWindowProc(message, wParam, lParam); } - return ::CallWindowProc(gs_wndprocStatBar, hwnd, message, wParam, lParam); + return ::CallWindowProc(CASTWNDPROC gs_wndprocStatBar, hwnd, message, wParam, lParam); } // ============================================================================ @@ -130,7 +131,7 @@ bool wxStatusBar95::Create(wxWindow *parent, // SubclassWin(m_hWnd); // but we want to process the messages from it still, so must subclass it - gs_wndprocStatBar = (WNDPROC)GetWindowLong(GetHwnd(), GWL_WNDPROC); + gs_wndprocStatBar = (WXFARPROC)GetWindowLong(GetHwnd(), GWL_WNDPROC); SetWindowLong(GetHwnd(), GWL_WNDPROC, (LONG)wxStatusBarProc); SetWindowLong(GetHwnd(), GWL_USERDATA, (LONG)this); @@ -157,7 +158,7 @@ void wxStatusBar95::CopyFieldsWidth(const int widths[]) } } -void wxStatusBar95::SetFieldsCount(int nFields, const int widths[]) +void wxStatusBar95::SetFieldsCount(int nFields, const int *widths) { // this is Windows limitation wxASSERT_MSG( (nFields > 0) && (nFields < 255), _T("too many fields") );