Share via


COleCmdUI::Enable

Call this function to set the command flag of the COleCmdUI object to OLECOMDF_ENABLED, which tells the interface the command is available and enabled, or to clear the command flag.

virtual void Enable( 
   BOOL bOn  
);

Parameters

  • bOn
    Indicates whether the command associated with the COleCmdUI object should be enabled or disabled. Nonzero enables the command; 0 disables the command.

Requirements

Header: afxdocob.h

See Also

Reference

COleCmdUI Class

Hierarchy Chart