CMonthCalCtrl::SetMaxSelCount
设置在月历控件可以选择天的最大数目。
BOOL SetMaxSelCount(
int nMax
);
参数
- nMax
将设置表示可选日的最大数目的值。
返回值
非零,如果成功;否则为0。
备注
此成员函数实现Win32消息 MCM_SETMAXSELCOUNT的行为,如 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