c# - Get forecolor of text of title bar in Windows 10 -


i need color of text of title bar in windows 10 because want color text of form upon color.

because color of windows in windows 10 can change dynamically background, need text color of title bar coloring form. instance, if windows 10 color yellow

enter image description here

the text black, while if color blue

enter image description here

the text white: want color of text.

where can find it?

so far set background color of title bar dwmcolorizationparams through colorizationcolor, can not find way forecolor.

i believe systemcolors.activecaptiontext should 1 need. changes dynamically according current profile.

gets color structure color of text in active window's title bar.

link: systemcolors.activecaptiontext


Comments