Condividi tramite


COleCmdUI::SetCheck

Call this function to set the state of an on/off toggle command.

virtual void SetCheck( 
   int nCheck  
);

Parameters

  • nCheck
    A value determining the state to set an on/off toggle command. Values are:

    Value

    Description

    1

    Sets the command to on.

    2

    Sets the command to indeterminate; the state cannot be determined because the attribute of this command is in both on and off states in the relevant selection.

    any other value

    Sets the command to off.

Requirements

Header: afxdocob.h

See Also

Reference

COleCmdUI Class

Hierarchy Chart

COleCmdUI::SetText

Other Resources

COleCmdUI Members