Partager via


CMFCColorButton::EnableOtherButton

Enable or disable the "other" button, which appears below regular color buttons.

void EnableOtherButton(
   LPCTSTR lpszLabel,
   BOOL bAltColorDlg=TRUE,
   BOOL bEnable=TRUE 
);

Parameters

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

  • [in] bAltColorDlg
    Specifies whether the CMFCColorDialog dialog box or the system color dialog box is opened when the user clicks the button.

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

Remarks

Click the "other" button to display a color dialog box. If the bAltColorDlg parameter is TRUE, the CMFCColorDialog Class is displayed; otherwise, the system color dialog box is displayed.

Requirements

Header: afxcolorbutton.h

See Also

Reference

CMFCColorButton Class

Hierarchy Chart