CMonthCalCtrl::SetDayState

BOOL SetDayState( int nMonths, LPMONTHDAYSTATE pStates );

Return Value

Nonzero if successful; otherwise 0.

Parameters

nMonths

Value indicating how many elements are in the array that pStates points to.

pStates

A pointer to a MONTHDAYSTATE array of values that define how the month calendar control will draw each day in its display. The MONTHDAYSTATE data type is a bit field, where each bit (1 through 31) represents the state of a day in a month. If a bit is on, the corresponding day will be displayed in bold; otherwise it will be displayed with no emphasis.

Remarks

This member function implements the behavior of the Win32 message MCM_SETDAYSTATE, as described in the Platform SDK.

CMonthCalCtrl OverviewClass MembersHierarchy Chart