CDateTimeCtrl* pTime = (CDateTimeCtrl*)GetDlgItem(IDC_DATETIMEPICKER1);
ASSERT(pTime);
CTime timeTime(2009, 1, 11, 0, 0, 0);
pTime->SetTime(&timeTime);
时间: 2024-10-05 18:50:22
CDateTimeCtrl* pTime = (CDateTimeCtrl*)GetDlgItem(IDC_DATETIMEPICKER1);
ASSERT(pTime);
CTime timeTime(2009, 1, 11, 0, 0, 0);
pTime->SetTime(&timeTime);