guides:programming:programmers_reference_manual:dwmcolors_property_system

DWMCOLORS property (System)

Retrieves the current color-set used for Desktop Window Manager (DWM) non-client frame composition rendering.

This property is an @fm-delimited array containing DWM color values. It is structured like so:

<1> ColorizationColor

<2> ColorizationAfterglow

<3> ColorizationColorBalance

<4> ColorizationAfterglowBalance

<5> ColorizationBlurBalance

<6> AccentColor

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetNoNoNo

Note these colors are in “ARGB” format, so the most significant byte is the “Alpha” value.

Equates for this property can be found in the PS_SYSTEM_EQUATES insert record.

 
$Insert PS_System_Equates

   $Insert Logical

   

   // Get the DSM Colors and extract the ColorizationColor value (i.e. the frame color)

   DWMColorSet       = Get_Property( "SYSTEM", "DWMCOLORS" )

   ColorizationColor = DWMColorSet<PS_DWM_POS_COLORIZATIONCOLOR$>

   

   // Extract the RGB from the ARGB value   

   rgbVal = bitAnd( ColorizationColor, 0x00FFFFFF )
 
 
 

N/A

  • guides/programming/programmers_reference_manual/dwmcolors_property_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1