Could some one please help me?
I have static box that makes the system time appear in hours mintues and seconds but it only refreshes when i move the mouse or other window activitey is there away to allow the clock to refresh freely?
Printable View
Could some one please help me?
I have static box that makes the system time appear in hours mintues and seconds but it only refreshes when i move the mouse or other window activitey is there away to allow the clock to refresh freely?
Set up a Windows timer (with a NULL callback function pointer) and handle the timer messages in your window class' OnTimer() event handler to update the clock display. Have a look at CWnd::SetTimer() in MSDN for instructions on how to do that.
A timer interval of 1000 ms should be ok for this application in most cases. That way your clock display may be off by a maximum of one second relative to the system clock, but your app wouldn't be too busy handling the timer messages.
HTH
BTW, please note that double-posting doesn't get you quicker, better or more answers. But maybe that was an unintentional mistake.
Thanks and the double post was unfortunate