Changing Application color to follow Change of System Color

  • Thread starter Thread starter Toni
  • Start date Start date
T

Toni

Hi Folks,

I wrote a custom control with custom drawing. What I want to detect is when
user change their system-wide color scheme, the custom control reflects that
change as well.

Does anybody know how to do this?
-toni
 
If you're doing all your drawing in OnPaint it should
work without any special handling. Doesn't that work
for you?

You can also handle WM_SYSCOLORCHANGE
(if you're caching and reusing brushes)

/claes
 
Hi Toni,

Take a look at SystemColors, SystemBrushes and SystemPens.

Happy coding!
Morten Wennevik [C# MVP]
 
Back
Top