View Full Version : TIMER?????

07-04-2005, 07:58 PM
Hello .
I have a problem in my visual c++ program .
I want use timer in my OpenGL game . but
when I set timer ("SetTimer(IDT_TIMER,2000,0) ;") and when it
return a non zero value ,I dont recive any WM_TIMER message to
dialog .
What I should do ....

Thankyou before your favours.

07-05-2005, 12:21 AM
Well, this question definitly doesnt have any connections to openGL, but in the MSDN is written this:
UINT_PTR SetTimer(HWND hWnd,UINT_PTR nIDEvent,UINT uElapse, TIMERPROC lpTimerFunc);

So if you want to send WM_TIMER to your dialog then you have to use it for example like this: