|
-
April 11th, 1999, 03:25 AM
#2
Re: Problem with displaying time with Timers
Create a CString object and use the "Format" function to write your time values to the string. Something like:
CString TimeVals;
TimeVals.Format("%02d:%02d:%02d", hr, min, sec);
You can then use SetDlgItemText to update your edit control.
setDlgItemText(IDC_TIMEVALS, (LPCTSTR)TimeVals);
Hope this helps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|