다음을 통해 공유


CMFCColorMenuButton::EnableDocumentColors

Enables the display of document-specific colors instead of system colors.

void EnableDocumentColors(
   LPCTSTR lpszLabel,
   BOOL bEnable=TRUE 
);

Parameters

  • [in] lpszLabel
    Specifies the button text.

  • [in] bEnable
    TRUE to display document-specific colors or FALSE to display system colors.

Remarks

Use this method to display the current document colors or the system palette colors when the user clicks a color menu button.

Requirements

Header: afxcolormenubutton.h

See Also

Reference

CMFCColorMenuButton Class

Hierarchy Chart