|
-
June 6th, 1999, 07:58 AM
#1
how to create a Timer for Winmine?
I am trying to write the game 'winmine' like
Windows'with VC6,but how can I design the Timer?
Thank you .
-
June 6th, 1999, 09:58 AM
#2
Re: how to create a Timer for Winmine?
Use WM_TIMER message.
Map it using class wizard.
In your init function call SetTimer(someid, sec*1000, NULL);
where someid can be any integer (I usually pass 1000)
This will call your timer fn every 'sec' seconds.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|