PC Review


Reply
Thread Tools Rate Thread

Changing Application color to follow Change of System Color

 
 
Toni
Guest
Posts: n/a
 
      11th May 2004
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


 
Reply With Quote
 
 
 
 
Claes Bergefall
Guest
Posts: n/a
 
      11th May 2004
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


"Toni" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Morten Wennevik
Guest
Posts: n/a
 
      11th May 2004
Hi Toni,

Take a look at SystemColors, SystemBrushes and SystemPens.

Happy coding!
Morten Wennevik [C# MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing text color and textbox color on Access Report Cindy Microsoft Access Reports 0 1st Dec 2010 05:15 PM
Changing skin color of application? Jack R Microsoft Outlook Discussion 1 2nd Jul 2010 10:37 AM
changing a color based on another color change Steve Microsoft Excel Programming 1 25th Nov 2008 12:05 PM
changing the background color of the application Gal Microsoft Access 1 9th Sep 2003 10:21 AM
Changing the color of the follow-up Flag. Tom Clark Microsoft Outlook 1 7th Aug 2003 07:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 PM.