From 6d20f7ae50a3238d3846052bee83d47ba7ced735 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Sep 2004 11:54:21 +0000 Subject: [PATCH] fixed signature of wxTimerProc to be conformant to what Windows expects it to be git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/timer.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/msw/timer.cpp b/src/msw/timer.cpp index b1e23fca66..883f67bfa2 100644 --- a/src/msw/timer.cpp +++ b/src/msw/timer.cpp @@ -2,7 +2,7 @@ // Name: msw/timer.cpp // Purpose: wxTimer implementation // Author: Julian Smart -// Modified by: +// Modified by: Vadim Zeitlin (use hash map instead of list, global rewrite) // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart @@ -37,10 +37,6 @@ #include "wx/msw/private.h" -// from utils.cpp -extern "C" WXDLLIMPEXP_BASE HWND -wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc); - // ---------------------------------------------------------------------------- // private globals // ---------------------------------------------------------------------------- @@ -56,7 +52,8 @@ static wxTimerMap g_timerMap; // private functions // ---------------------------------------------------------------------------- -void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD); +// timer callback used for all timers +void WINAPI wxTimerProc(HWND hwnd, UINT msg, UINT idTimer, DWORD dwTime); // ---------------------------------------------------------------------------- // macros @@ -93,7 +90,7 @@ bool wxTimer::Start(int milliseconds, bool oneShot) NULL, // don't use window 1, // id ignored with NULL hwnd anyhow (UINT)m_milli, // delay - (TIMERPROC)wxTimerProc // timer proc to call + wxTimerProc // timer proc to call ); if ( !m_id ) @@ -147,7 +144,11 @@ void wxProcessTimer(wxTimer& timer) timer.Notify(); } -void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD) +void WINAPI +wxTimerProc(HWND WXUNUSED(hwnd), + UINT WXUNUSED(msg), + UINT idTimer, + DWORD WXUNUSED(dwTime)) { wxTimerMap::iterator node = g_timerMap.find(idTimer); -- 2.45.2