Determining system color setting 
Author Message
 Determining system color setting

Hi all,

I need to know how to determine the current system color setting (e.g.,
256, 65K, High Color, True Color, etc.) and change it if necessary.  This
needs to work for Windows 3.x and 95/NT; I'm using VB3.0 Pro.  I have the
MS SDK (books, CD's, etc.) but can't seem to find what I'm looking for.
I'd appreciate it if someone could point me in the right direction.

Thanks in advance,

Mike



Fri, 25 Jun 1999 03:00:00 GMT  
 Determining system color setting

?
? Hi all,
?
? I need to know how to determine the current system color setting
(e.g.,
? 256, 65K, High Color, True Color, etc.) and change it if necessary.
This
? needs to work for Windows 3.x and 95/NT; I'm using VB3.0 Pro.  I have
the
? MS SDK (books, CD's, etc.) but can't seem to find what I'm looking
for.
? I'd appreciate it if someone could point me in the right direction.

Hi Mike,
I think what you are looking for is Get/SetSystemPalette.

A word of caution - changing the users system colours is dependant on so
many
factor (ie video cards, video memory, available screen resolutin ....)
that it is NOT
advisable to change the system but to change your app in the way it
looks.

You must remember that under Windows you can have multiple apps running
simultaneously and by changing the settings you may indavertantly upset
another
app (changing someones system is not a very friendly thing to do)
--
Regards



Wed, 30 Jun 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Determining system color setting

2. How to determine how many colors the system has been set to

3. Determining current system color setting

4. Determine system color depth?

5. Help: Determining system color mode...

6. How to Determine System Settings from VBA

7. setting all foreground and bkground colors to use window's current color setting

8. How to set/retrieve Windows System Colors Using API and VBA

9. Setting a control's backcolor to a system color in code

10. Setting System colors from VB application

11. How can I set system colors ?

12. Setting each application with different system colors

 

 
Powered by phpBB® Forum Software