.NET: How to get ActiveCaptionText color at maximize window?

How do you get an ActiveCaptionText color at maximum window magnification?

Color is restored when the window is restored:

alt text http://i39.tinypic.com/2s627nl.jpg

But this is not the color when the window is maximized:

alt text http://i40.tinypic.com/2zz3ql4.jpg

How do you get an active ActionCaptionText ?

Note: Same question for ActiveCaption , InactiveCaption and InactiveCaptionText .


There seems to be something with:

VisualStyleRenderer vs = 
   new VisualStyleRenderer(VisualStyleElement.Window.MaxCaption.Active);

label1.ForeColor = vs.GetColor(ColorProperty.TextColor);

But I can’t make it work. it returns black for both Caption and MaxCaption :

alt text http://i41.tinypic.com/3994h.jpg


+3
1

Aero. . Windows.

+1

Source: https://habr.com/ru/post/1711589/


All Articles