Share via


CMFCButton::SetFaceColor

Sets the background color for the button text.

void SetFaceColor(
   COLORREF crFace,
   BOOL bRedraw=TRUE 
);

Parameters

  • [in] crFace
    An RGB color value.

  • [in] bRedraw
    TRUE to redraw the screen immediately; otherwise, FALSE.

Remarks

Use this method to define a new fill color for the button background (face). Note that the background is not filled when the CMFCButton::m_bTransparent member variable is TRUE.

Requirements

Header: afxbutton.h

See Also

Reference

CMFCButton Class

Hierarchy Chart

COLORREF