Поделиться через


CMonthCalCtrl::SetToday

Sets the calendar control for the current day.

void SetToday(
   const COleDateTime& refDateTime 
);
void SetToday(
   const CTime* pDateTime 
);
void SetToday(
   const LPSYSTEMTIME pDateTime 
);

Параметры

  • refDateTime
    A reference to a COleDateTime object that contains the current date.

  • pDateTime
    In the second version, a pointer to a CTime object containing the current date information. In the third version, a pointer to a SYSTEMTIME structure that contains the current date information.

Заметки

This member function implements the behavior of the Win32 message MCM_SETTODAY, as described in the Windows SDK.

Пример

See the example for CMonthCalCtrl::GetToday.

Требования

Header: afxdtctl.h

См. также

Основные понятия

CMonthCalCtrl Class

CMonthCalCtrl Members

Hierarchy Chart

CMonthCalCtrl::GetToday