MCM_GETCURSEL message

Retrieves the currently selected date. You can send this message explicitly or by using the MonthCal_GetCurSel macro.

Parameters

wParam

Must be zero.

lParam

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

Returns nonzero if successful, or zero otherwise. This message will always fail when applied to month calendar controls set to the MCS_MULTISELECT style.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

Times in the Month Calendar Control