static control color
-
Hi !! This is a little stupid question but I don't know how to make it :) I derived a class from the CStatic class and I draw the control myself in the Paint() function. But know I want it to have the "normal" grey color (the color of a standard push button for exaple) in the background. Does anybody know the RGB color code of it ? Thanks
-
Hi !! This is a little stupid question but I don't know how to make it :) I derived a class from the CStatic class and I draw the control myself in the Paint() function. But know I want it to have the "normal" grey color (the color of a standard push button for exaple) in the background. Does anybody know the RGB color code of it ? Thanks
RGB(192, 192, 192) :)
-
RGB(192, 192, 192) :)
Thanks but it's not the same gray :(! So, it's quite ugly because I use this control on a form so the colors are not exactly the same
-
RGB(192, 192, 192) :)
uhh, bad idea - the color depends on your os settings. use ::GetSysColor(COLOR_BTNFACE) that should do it.
-
uhh, bad idea - the color depends on your os settings. use ::GetSysColor(COLOR_BTNFACE) that should do it.
Thanks a lot!! I was exactly searching for something like that :)