Use of CMonthCalCtrl

来源:互联网 发布:js span 编辑:程序博客网 时间:2024/05/21 10:50

CMonthCalCtrl m_ctlMonthCal;

 

CMonthCalCtrl::GetCurSel

Function: Retrieves the system time as indicated by the currently-selected date

Sample:

SYSTEMTIME sTime;

m_ctlMonthCal.GetCurSel(&sTime);

SetSystemTime(&sTime);

 

CMonthCalCtrl::SetFirstDayOfWeek

Function: Sets the day of week to be displayed in the leftmost column of the calendar.

Sample:

m_ctlMonthCal.SetFirstDayOfWeek(0); // 0 stands for Monday

 

 

 

 

原创粉丝点击