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 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft