How to get Diplay properties...
-
Hi, I'm wan't to get the color windows is using at run time. Every object in windows use these color, to draw the back ground of a view, the color of the frame, text, title bar, button color etc. So it's the color that we set in the control panel\Display\Appearance. I wan't to access these color to let my application to be like any other window program, so... someone can tell me what familly of function or witch class or library. It must be simple, I can think something else that simple... thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com
-
Hi, I'm wan't to get the color windows is using at run time. Every object in windows use these color, to draw the back ground of a view, the color of the frame, text, title bar, button color etc. So it's the color that we set in the control panel\Display\Appearance. I wan't to access these color to let my application to be like any other window program, so... someone can tell me what familly of function or witch class or library. It must be simple, I can think something else that simple... thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com
I think you want to look at the docs for GetSysColor.
-
I think you want to look at the docs for GetSysColor.
Thank you!!! It is what I'm seraching for!!! :) :laugh: :-D Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com Don't forget that some miracle come from hell
-
Hi, I'm wan't to get the color windows is using at run time. Every object in windows use these color, to draw the back ground of a view, the color of the frame, text, title bar, button color etc. So it's the color that we set in the control panel\Display\Appearance. I wan't to access these color to let my application to be like any other window program, so... someone can tell me what familly of function or witch class or library. It must be simple, I can think something else that simple... thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com
I think what you may be looking for is GetSysColor(COLOR_BTNFACE) which will return the COLORREF for the buttons face colour. If you have a look at the help topic for that API it will list the other colours you retrieve with it. Happy programming!!