CMonthCalCtrl::SetMaxSelCount

更新 : 2007 年 11 月

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

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);

必要条件

ヘッダー : afxdtctl.h

参照

参照

CMonthCalCtrl クラス

階層図

CMonthCalCtrl::GetMaxSelCount

その他の技術情報

CMonthCalCtrl のメンバ