CMonthCalCtrl::SetMaxSelCount

Imposta il numero massimo di giorni che possono essere selezionati in un controllo calendario mensile.

BOOL SetMaxSelCount(
   int nMax 
);

Parametri

  • nMax
    Il valore che verrà impostato per rappresentare il numero massimo di giorni selezionabili.

Valore restituito

Diverso da zero se ha esito positivo; in caso contrario 0.

Note

Questa funzione membro implementa il comportamento di messaggi Win32 MCM_SETMAXSELCOUNT, come descritto in Windows SDK.

Esempio

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

Requisiti

Header: afxdtctl.h

Vedere anche

Riferimenti

Classe di CMonthCalCtrl

Grafico della gerarchia

CMonthCalCtrl::GetMaxSelCount