Compartilhar via


MCM_SETCURSEL

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message 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 intoview.

Syntax

MCM_SETCURSEL wParam = 0;
    lParam = (LPARAM)(LPSYSTEMTIME) lpSysTime;

Parameters

  • wParam
    Not used.
  • 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 Value

Nonzero indicates success. Zero indicates otherwise. This message fails if applied to a month calendar control that uses the MCS_MULTISELECT style.

Remarks

Related macro: MonthCal_SetCurSel

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Other Resources

SYSTEMTIME