共用方式為


CMFCPropertyGridCtrl::GetCustomColors

Retrieves the custom colors that are currently defined for property grid control elements.

void GetCustomColors(
   COLORREF& clrBackground,
   COLORREF& clrText,
   COLORREF& clrGroupBackground,
   COLORREF& clrGroupText,
   COLORREF& clrDescriptionBackground,
   COLORREF& clrDescriptionText,
   COLORREF& clrLine 
);

Parameters

  • [out] clrBackground
    The background color of property values.

  • [out] clrText
    The color of property names and property value text.

  • [out] clrGroupBackground
    The background color of a property group.

  • [out] clrGroupText
    The color of text in the property group.

  • [out] clrDescriptionBackground
    The background color of the description area.

  • [out] clrDescriptionText
    The color of text in the description area.

  • [out] clrLine
    The color of lines that are drawn between properties.

Remarks

Use the CMFCPropertyGridCtrl::SetCustomColors method to set custom colors.

Requirements

Header: afxpropertygridctrl.h

See Also

Reference

CMFCPropertyGridCtrl Class

Hierarchy Chart

CMFCPropertyGridCtrl::SetCustomColors

COLORREF