CMonthCalCtrl::SetMaxSelCount
Sets the maximum number of days that can be selected in a month calendar control.
BOOL SetMaxSelCount(
int nMax
);
- nMax
The value that will be set to represent the maximum number of selectable days.
Nonzero if successful; otherwise 0.
This member function implements the behavior of the Win32 message MCM_SETMAXSELCOUNT, as described in the Windows SDK.
// The control needs to have the MCS_MULTISELECT style
// for the following code to work.
// change the maximum selection count
m_calCtrl2.SetMaxSelCount(10);
// check that the change was really made
ASSERT(m_calCtrl2.GetMaxSelCount() == 10);
Header: afxdtctl.h