CMFCColorBar::EnableAutomaticButton

显示或隐藏自动按钮。

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

参数

  • [in] lpszLabel
    自动 (默认值)颜色按钮的文本标签或 NULL。

    自动按钮的标准标签是 自动

  • [in] colorAutomatic
    该结构适用的默认颜色,当您单击自动按钮。

  • [in] bEnable
    启用自动按钮的TRUE ;禁用自动按钮的 FALSE。默认值为 TRUE。

备注

自动按钮的文本标签删除,如果 lpszLabel 参数是 NULL 或 bEnable 参数是 FALSE。

要求

标头: afxcolorbar.h

请参见

参考

CMFCColorBar选件类

层次结构图