Condividi tramite


CCheckListBox::GetCheck

Retrieves the state of the specified check box.

int GetCheck(
   int nIndex 
);

Parameters

  • nIndex
    Zero-based index of a check box that is contained in the list box.

Return Value

The state of the specified check box. The following table lists possible values.

Value

Description

BST_CHECKED

The check box is checked.

BST_UNCHECKED

The check box is not checked.

BST_INDETERMINATE

The check box state is indeterminate.

Requirements

Header: afxwin.h

See Also

Reference

CCheckListBox Class

Hierarchy Chart

CCheckListBox::OnGetCheckPosition

CCheckListBox::SetCheck

CCheckListBox::SetCheckStyle

CCheckListBox::GetCheckStyle