MCM_SETDAYSTATEMCM_SETDAYSTATE*
*Contents  *Index  *Topic Contents
*Previous Topic: MCM_SETCURSEL
*Next Topic: MCM_SETFIRSTDAYOFWEEK

MCM_SETDAYSTATE


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

Sets the day states for all months that are currently visible within a month calendar control. You can send this message explicitly or by using the MonthCal_SetDayState macro.

iMonths
Value indicating how many elements are in the array that lpDayStateArray points to.
lpDayStateArray
Address of 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:

MonthCal_GetMonthRange(hwndMC, GMR_DAYSTATE, NULL);

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.

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.