Compartir a través de


MCM_SETDAYSTATE

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message sets the display for days in all months that are currently visible within a month calendar control.

Syntax

MCM_SETDAYSTATE wParam = (WPARAM) iMonths;
    lParam = (LPARAM)(LPMONTHDAYSTATE) lpDayStateArray; 

Parameters

  • iMonths
    Indicates how many elements are in the array that lpDayStateArray points to.
  • lpDayStateArray
    Long pointer to an array of MONTHDAYSTATE values that define how the month calendar control will draw each day in its display.

    The array at lpDayStateArray must contain as many elements as the value returned by the following macro.

Return Value

Sets the month calendar's display and returns nonzero if successful. Otherwise it returns zero.

Remarks

Keep in mind that the array at lpDayStateArray must contain MONTHDAYSTATE values that correspond with all months currently in the control's display, in chronological order. This includes the two months only partially displayed before the first month and after the last month. For more information about preparing your array, see Preparing the MONTHDAYSTATE Array.

Related macro: MonthCal_SetDayState

Requirements

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