This topic is now archived and is closed to further replies.


Win32 timer question

Recommended Posts

In the docs for SetTimer(), it says that if you pass NULL as the hWnd, it ignores the nIDEvent parameter. In the docs for TimerProc(), it is passed the the idEvent parameter. Both are a UINT_PTR, so I'm wondering, since I'm passing NULL as the hWnd (and everything is working great), could I then use the nIDEvent parameter to pass a pointer to an object to my TimerProc() function through idEvent parameter? I don't know if by ignoring it, it means it doesn't pass it along, and I haven't had time to test it yet, so does anyone know if it'll work? Or is there an easier way to pass a pointer to the TimerProc() function? Thanks in advance for any help. [edited by - Chozo on March 4, 2003 2:19:22 PM]

Share this post

Link to post
Share on other sites