UI_PKEY_FontProperties_BackgroundColorType

識別UI_PKEY_FontProperties_BackgroundColorType屬性。

propertyDescription
   name = UI_PKEY_FontProperties_BackgroundColorType
   shellPKey = UI_PKEY_FontProperties_BackgroundColorType
   formatID = 00000311-7363-696e-8441798acf5aebb7
   propID = 311
   typeInfo
      type = UI_SWATCHCOLORTYPE

備註

應用程式會使用UI_PKEY_FontProperties_BackgroundColorType搭配UI_PKEY_FontProperties_BackgroundColor來查詢文字醒提示色彩庫設定。

屬性值來自 UI_SWATCHCOLORTYPE 列舉。

預設值是 UI_SWATCHCOLORTYPE_RGB

下表描述屬性值。

屬性 Description
UI_SWATCHCOLORTYPE_NOCOLOR 應用程式應該針對色彩值查詢適當的系統計量,通常是使用 GetSysColor (COLOR_WINDOW) 擷取的目前 Windows 主題 視窗背景色彩
UI_SWATCHCOLORTYPE_AUTOMATIC FontControl不支援。
UI_SWATCHCOLORTYPE_RGB 應用程式應該查詢 UI_PKEY_FontProperties_BackgroundColor 色彩值。 UI_PKEY_FontProperties_BackgroundColor的色彩值會顯示在 [文字醒目提示色彩] 按鈕上,並在[文字醒目提示色彩庫] 中選取。

UI_PKEY_FontProperties_BackgroundColorType會在FontControlText 醒目提示色彩資源庫中選取色彩時,傳遞至IUICommandHandler::Execute回呼方法。

注意

強烈建議應用程式只在檔內重新置放游標時,設定初始 文字醒 目提示色彩值,而不會重新設定此值。 應該維護最後一個選取範圍,以避免需要重新選取所需的色彩。

字型控制項屬性

UI_SWATCHCOLORTYPE

字型控制項