#include "wx/msw/private.h"
#if wxUSE_TOOLTIPS
-// #ifndef __GNUWIN32__
+ #ifndef __GNUWIN32_OLD__
#include <commctrl.h>
-// #endif
+ #endif
#include "wx/tooltip.h"
#endif // wxUSE_TOOLTIPS
// ---------------------------------------------------------------------------
// the pointer to standard radio button wnd proc
-static WNDPROC s_wndprocRadioBtn = (WNDPROC)NULL;
+static WXFARPROC s_wndprocRadioBtn = (WXFARPROC)NULL;
#endif // __WIN32__
HWND hwndBtn = (HWND)hWndBtn;
if ( !s_wndprocRadioBtn )
- s_wndprocRadioBtn = (WNDPROC)::GetWindowLong(hwndBtn, GWL_WNDPROC);
+ s_wndprocRadioBtn = (WXFARPROC)::GetWindowLong(hwndBtn, GWL_WNDPROC);
::SetWindowLong(hwndBtn, GWL_WNDPROC, (long)wxRadioBtnWndProc);
::SetWindowLong(hwndBtn, GWL_USERDATA, (long)this);
// want to process arrows ourselves because neither of them is
// smart enough to handle arrows properly for us
{
- long lDlgCode = ::CallWindowProc(s_wndprocRadioBtn, hwnd,
+ long lDlgCode = ::CallWindowProc(CASTWNDPROC s_wndprocRadioBtn, hwnd,
message, wParam, lParam);
+
return lDlgCode | DLGC_WANTARROWS;
}
}
}
- return ::CallWindowProc(s_wndprocRadioBtn, hwnd, message, wParam, lParam);
+ return ::CallWindowProc(CASTWNDPROC s_wndprocRadioBtn, hwnd, message, wParam, lParam);
}
#endif // __WIN32__