Freigeben über


CCheckListBox::SetCheck

Call this function to set the check box of the item specified by nIndex.

void SetCheck(
   int nIndex,
   int nCheck 
);

Parameters

  • nIndex
    Index of the item whose check box is to be set.

  • nCheck
    State of the check box: 0 for clear, 1 for checked, and 2 for indeterminate.

Requirements

Header: afxwin.h

See Also

Concepts

CCheckListBox Class

CCheckListBox Members

Hierarchy Chart

CCheckListBox::SetCheckStyle

CCheckListBox::GetCheck

CCheckListBox::GetCheckStyle