Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a dialog after certain time (using cpu clock)

Status
Not open for further replies.

Fugitive

Programmer
Feb 17, 2002
1
PK
I need to update my dialog every 5 second using a clock pulse how can i do it.
 
Hi

Well, Create a timer in OnInitDialog using the function SetTimer

if ( SetTimer( ID_TIMER, 5000, NULL) != ID_TIMER)
AfxMessageBox( "Oops !!! No More Timer);

Now add the OnTimer handler using Class Wizard
and do what you need to do in this function

HTH

Thierry
EMail: Thierry.Marneffe@swing.be
WebSite:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top