Compartilhar via


CMFCColorButton::EnableAutomaticButton

Enable or disable the "automatic" button of a color picker control and set the automatic (default) color.

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

Parameters

  • [in] lpszLabel
    Specifies the automatic button's text.

  • [in] colorAutomatic
    An RGB value that specifies the automatic button's default color.

  • [in] bEnable
    Specifies whether the automatic button is enabled or disabled.

Requirements

Header: afxcolorbutton.h

See Also

Reference

CMFCColorButton Class

Hierarchy Chart