Export (0) Print
Expand All

CMonthCalCtrl::GetCurSel

Retrieves the system time as indicated by the currently-selected date.

BOOL GetCurSel(
   COleDateTime& refDateTime 
) const;
BOOL GetCurSel(
   CTime& refDateTime 
) const;
BOOL GetCurSel(
   LPSYSTEMTIME pDateTime 
) const;

Parameters

refDateTime
A reference to a COleDateTime object or a CTime object. Receives the current time.
pDateTime
A pointer to a SYSTEMTIME structure that will receive the currently-selected date information. This parameter must be a valid address and cannot be NULL.

Return Value

Nonzero if successful; otherwize 0.

Remarks

This member function implements the behavior of the Win32 message MCM_GETCURSEL, as described in the Platform SDK.

Note   This member function fails if the style MCS_MULTISELECT is set.

In MFC's implementation of GetCurSel, you can specify a COleDateTime usage, a CTime usage, or a SYSTEMTIME structure usage.

See Also

CMonthCalCtrl Overview | Class Members | Hierarchy Chart | CMonthCalCtrl::SetCurSel

Show:
© 2014 Microsoft