|
-
May 23rd, 2005, 01:42 AM
#1
How can I display current Time in a Static text.
I have already a dialog with Static text, IDC_STATICTIME, I have created a variable using CString m_sTime and with this
COleDateTime m_strTime= COleDateTime::GetCurrentTime();
m_sTime = m_strTime.Format("%b %d %Y);
Question: How can i display it in a certain portion in the dialog? So, the IDC_STATICTIME, i've used should display:
Current Date: the date(say May 23 2005)
I have put the code in DoDataExchange(CDataExchange* pDX)
with DDX_Text(pDX, IDC_STATICTIME, m_sTime); and it display as it should be but any other option without using DDX_text to display it?
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
|