COleCmdUI::Enable

virtual void Enable( BOOL bOn = TRUE );

Parameters

bOn

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

Remarks

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.

COleCmdUI OverviewClass MembersHierarchy Chart