Compartilhar via


COleControlContainer::CheckDlgButton

Modifies the current state of the button.

virtual void CheckDlgButton(
   int nIDButton,
   UINT nCheck 
);

Parameters

  • nIDButton
    The ID of the button to be modified.

  • nCheck
    Specifies the state of the button. Can be one of the following:

    • BST_CHECKED   Sets the button state to checked.

    • BST_INDETERMINATE   Sets the button state to grayed, indicating an indeterminate state. Use this value only if the button has the BS_3STATE or BS_AUTO3STATE style.

    • BST_UNCHECKED   Sets the button state to cleared.

Requirements

Header: afxocc.h

See Also

Reference

COleControlContainer Class

Hierarchy Chart

Other Resources

COleControlContainer Members