共用方式為


CMFCPropertyGridCtrl::GetCustomColors

擷取在屬性方格控制項項目目前定義的自訂色彩。

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

參數

  • [out] clrBackground
    屬性值的背景色彩。

  • [out] clrText
    屬性名稱色彩和屬性值的文字。

  • [out] clrGroupBackground
    屬性群組的背景色彩。

  • [out] clrGroupText
    文字色彩在屬性群組中。

  • [out] clrDescriptionBackground
    描述區域的背景色彩。

  • [out] clrDescriptionText
    文字色彩會描述區域的。

  • [out] clrLine
    繪製在屬性之間的線條色彩。

備註

使用 CMFCPropertyGridCtrl::SetCustomColors 方法設定自訂色彩。

需求

標題: afxpropertygridctrl.h

請參閱

參考

CMFCPropertyGridCtrl 類別

階層架構圖

CMFCPropertyGridCtrl::SetCustomColors

COLORREF