How to do Timers in MFC
-
Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie
-
Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie
waxie wrote:
I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where.
Trace into the MFC source code for
CWnd::SetTimer
.
Maxwell Chen
-
Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie
Timer uses hardware interupts. why do you need to know how it is implemented ? why not simply use it ??
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie
hi, what is there you just implement the Api called ::SetTimer(...) ::KillTimer(...) // surf in google you get no of examples. Think Clever
Uday kiran
-
Hi guys, I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where. I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.:-O Miss programmer in distress, :rose: X| waxie