CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    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 .


  2. #2
    Join Date
    May 1999
    Location
    OR, USA
    Posts
    65

    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
  •  





Click Here to Expand Forum to Full Width

Featured