Bagikan melalui


CMFCPropertyGridColorProperty::EnableAutomaticButton

Enables the automatic button on the color selection dialog box. (The standard automatic button is labeled Automatic.)

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

Parameters

  • [in] lpszLabel
    The label text of the automatic button.

  • [in] colorAutomatic
    The RGB color value of the automatic (default) color.

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

Requirements

Header: afxpropertygridctrl.h

See Also

Reference

CMFCPropertyGridColorProperty Class

Hierarchy Chart

COLORREF