whluk
asked on
A Beginner's question
Hi,
I need to get the system time and display it in a label or edit box. The resource name is IDC_STATIC.
I wrote a couple of lines in the OnPaint function:
CString aString;
CTime timeGo;
SYSTEMTIME sysTime;
timeGo.GetAsSystemTime (sysTime);
timeGo.Format (aString);
And I am stucked here, because I don't know how to put the string in the label or edit box field
Can you help me out with this?
I need to get the system time and display it in a label or edit box. The resource name is IDC_STATIC.
I wrote a couple of lines in the OnPaint function:
CString aString;
CTime timeGo;
SYSTEMTIME sysTime;
timeGo.GetAsSystemTime (sysTime);
timeGo.Format (aString);
And I am stucked here, because I don't know how to put the string in the label or edit box field
Can you help me out with this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER