Link to home
Start Free TrialLog in
Avatar of whluk
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?



Avatar of whluk
whluk

ASKER

Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of ChefInnocent
ChefInnocent

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial