Delen via


CMFCColorMenuButton::EnableAutomaticButton

Enables and disables an "automatic" button that is positioned above the regular color buttons. (The standard system automatic button is labeled Automatic.)

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

Parameters

  • [in] lpszLabel
    Specifies the button text that is displayed when the button becomes automatic.

  • [in] colorAutomatic
    Specifies a new automatic color.

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

Remarks

The automatic button applies the current default color.

Requirements

Header: afxcolormenubutton.h

See Also

Reference

CMFCColorMenuButton Class

Hierarchy Chart

COLORREF