lixiaojian
June 6th, 1999, 07:58 AM
I am trying to write the game 'winmine' like
Windows'with VC6,but how can I design the Timer?
Thank you .
Windows'with VC6,but how can I design the Timer?
Thank you .
|
Click to See Complete Forum and Search --> : how to create a Timer for Winmine? lixiaojian June 6th, 1999, 07:58 AM I am trying to write the game 'winmine' like Windows'with VC6,but how can I design the Timer? Thank you . Yogen M June 6th, 1999, 09:58 AM 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. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |