CMonthCalCtrl::SetMaxSelCount

月間予定表コントロールで選択できる日付の最大数を設定します。

BOOL SetMaxSelCount(
   int nMax 
);

パラメーター

  • nMax
    選択可能な日付の数を表すに設定された値。

戻り値

正常終了した場合は 0 以外を返します。それ以外の場合は 0 を返します。

解説

このメンバー関数は Windows SDKに記述されている Win32 メッセージの動作を MCM_SETMAXSELCOUNT実行します。

使用例

// 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

参照

関連項目

CMonthCalCtrl クラス

階層図

CMonthCalCtrl::GetMaxSelCount