Share via


MonthCal_SetCurSel

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

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Commctrl.h   Commctrl.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SYSTEMTIME

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.