Partager via


MonthCal_SetCurSel (Windows CE 5.0)

Send Feedback

This macro 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.

BOOL MonthCal_SetCurSel(HWND hwndMC, LPSYSTEMTIME lpSysTime );

Parameters

  • hwndMC
    Handle to a month calendar control.
  • lpSysTime
    Long pointer to a SYSTEMTIME structure that contains the date to be set as the current selection. The time members of this structure are ignored.

Return Values

Nonzero indicates success. Zero indicates otherwise. This macro will fail if applied to a month calendar control that uses the MCS_MULTISELECT style.

Remarks

Related message:MCM_SETCURSEL

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.

See Also

SYSTEMTIME

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.