Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
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.
Syntax
BOOL MonthCal_SetCurSel( HWND hwndMC, LPSYSTEMTIME lpSysTime ); |
Parameters
- hwndMC
-
Handle to a month calendar control.
- lpSysTime
-
Long pointer to a SYSTEMTIMEstructure that contains the date to be set as the current selection. The time members of this structure are ignored.
Return Value
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
Header | commctrl.h |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |