Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MonthCal_SetCurSel

MonthCal_SetCurSel 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. You can use this macro or send the MCM_SETCURSEL message explicitly.

Syntax


BOOL MonthCal_SetCurSel(
   HWND         hwndMC,
   LPSYSTEMTIME lpSysTime
);

Parameters

hwndMC

Type: HWND

Handle to a month calendar control.

lpSysTime

Type: LPSYSTEMTIME

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 value

Returns nonzero if successful, or zero otherwise. This macro will fail if applied to a month calendar control that uses the MCS_MULTISELECT style.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft