MCM_SETCURSEL message
Sets the currently selected date for a month calendar control. If the specified date is not in view, the control updates the display to bring it into view. You can send this message explicitly or by using the MonthCal_SetCurSel macro.
Parameters
-
wParam
- Must be zero.
-
lParam
-
Pointer to a SYSTEMTIME structure that contains the date to be set as the current selection.
Return value
Returns nonzero if successful, or zero otherwise. This message will fail if applied to a month calendar control that uses 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 |
|