How can we get system time ?
void CTimeDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CTime t=CTime::GetCurrentTime();
CString str;
str.Format("%d:%d:%d",t.GetHour(),t.GetMinute(),t.GetSecond());
this->SetWindowText(str);
}
Showing posts with label GetHour(). Show all posts
Showing posts with label GetHour(). Show all posts
Friday, November 6, 2009
Subscribe to:
Posts (Atom)