date time picker控件的有关问题
date time picker控件的问题
请问一下如何获取dtp所显示的日期?在style选中use spin control的情况下.
谢了
------解决方案--------------------
给控件添加control类型的变量:m_time;
CTime mytime;
m_111.GetTime(mytime);
int year,day,month...;
year = mytime.GetYear();
请问一下如何获取dtp所显示的日期?在style选中use spin control的情况下.
谢了
------解决方案--------------------
给控件添加control类型的变量:m_time;
CTime mytime;
m_111.GetTime(mytime);
int year,day,month...;
year = mytime.GetYear();