关于DTP控件的初试化问题
为什么我的初试化DateTime控件老是不成功,我是在WM_INITDIALOG消息里执行初试化操作的,我的代码是这样的:
SYSTEMTIME st;
st.wYear = temp->iYear;
st.wMonth = temp->iMonth;
st.wDay = temp->iDay;
st.wHour = temp->iHour;
st.wMinute = temp->iMin;
st.wSecond = temp->iSecond;
DateTime_SetSystemtime(GetDlgItem(hChildDlg,IDC_PICKTIME),GDT_VALID,&st);
结果DTP控件依然显示的是系统当前的时间,请指教