I am trying to write the game 'winmine' like
Windows'with VC6,but how can I design the Timer?
Thank you .
Printable View
I am trying to write the game 'winmine' like
Windows'with VC6,but how can I design the Timer?
Thank you .
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.