UI_PKEY_ColorType

标识 UI_PKEY_ColorType 属性。

propertyDescription
   name = UI_PKEY_ColorType
   shellPKey = UI_PKEY_ColorType
   formatID = 00000401-7363-696e-8441798acf5aebb7
   propID = 401
   typeInfo
      type = UI_SWATCHCOLORTYPE

备注

UI_PKEY_ColorType由应用程序用于查询 DropDownColorPicker 控件的颜色设置。

属性值来自 UI_SWATCHCOLORTYPE 枚举。

属性 说明
UI_SWATCHCOLORTYPE_NOCOLOR 应用程序应将颜色设置视为透明。 通常与 “无颜色颜色 ”设置结合使用。
UI_SWATCHCOLORTYPE_AUTOMATIC 应用程序应查询 GetSysColor (COLOR_WINDOWTEXT) 。 通常与 自动 颜色设置结合使用。
UI_SWATCHCOLORTYPE_RGB 应用程序应查询 UI_PKEY_Color 以获取颜色设置。

 

DropDownColorPicker 中选择颜色样本时,UI_PKEY_ColorType将传递到 IUICommandHandler::Execute 回调方法。

颜色选取器属性