Share via


CMFCColorBar::EnableAutomaticButton

Shows or hides the automatic button.

void EnableAutomaticButton(
   LPCTSTR lpszLabel,
   COLORREF colorAutomatic,
   BOOL bEnable=TRUE 
);

Parameters

  • [in] lpszLabel
    The text label of the automatic (default) color button, or NULL.

    The standard label for the automatic button is Automatic.

  • [in] colorAutomatic
    The default color that the framework applies when you click the automatic button.

  • [in] bEnable
    TRUE to enable the automatic button; FALSE to disable the automatic button. The default value is TRUE.

Remarks

The text label of the automatic button is deleted if the lpszLabel parameter is NULL or the bEnable parameter is FALSE.

Requirements

Header: afxcolorbar.h

See Also

Reference

CMFCColorBar Class

Hierarchy Chart