CString str; //获取系统时间
CTime tm; tm = CTime::GetCurrentTime();
str = tm.Format("现在时间是%Y年%m月%d日 %X");
MessageBox(str, NULL, MB_OK);
CTime tm; tm = CTime::GetCurrentTime();
str = tm.Format("现在时间是%Y年%m月%d日 %X");
MessageBox(str, NULL, MB_OK);