BOOL SetCurSel( const COleDateTime& refDateTime );
BOOL SetCurSel( const CTime& refDateTime );
BOOL SetCurSel( const LPSYSTEMTIME pDateTime );
Return Value
Nonzero if successful; otherwise 0.
Parameters
refDateTime
A reference to a COleDateTime or CTime object indicating the currently-selected month calendar control.
pDateTime
Pointer to a SYSTEMTIME structure that contains the date to be set as the current selection.
Remarks
This member function implements the behavior of the Win32 message MCM_SETCURSEL, as described in the Platform SDK.
In MFC's implementation of SetCurSel, you can specify a COleDateTime usage, a CTime usage, or a SYSTEMTIME structure usage.
CMonthCalCtrl Overview | Class Members | Hierarchy Chart
See Also CMonthCalCtrl::GetCurSel