Contents Index Topic Contents | ||
Previous Topic: MonthCal_SetColor Next Topic: MonthCal_SetDayState |
MonthCal_SetCurSel
BOOL MonthCal_SetCurSel( HWND hwndMC, LPSYSTEMTIME lpSysTime );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 use this macro or send the MCM_SETCURSEL message explicitly.
- Returns nonzero if successful, or zero otherwise. This macro will fail if applied to a month calendar control that uses the MCS_MULTISELECT style.
- hwndMC
- Handle to a month calendar control.
- lpSysTime
- Address of a SYSTEMTIME structure that contains the date to be set as the current selection. The time members of this structure are ignored.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.