CMFCColorButton::EnableAutomaticButton

启用或禁用颜色选取器控件的“auto”按钮并将自动(默认值)颜色。

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

参数

  • [in] lpszLabel
    指定自动按钮的文本。

  • [in] colorAutomatic
    指定自动按钮的默认颜色的RGB值。

  • [in] bEnable
    指定自动按钮是否启用或禁用。

要求

标头: afxcolorbutton.h

请参见

参考

CMFCColorButton Class

层次结构图