I have a dialog with 2 CStatic Controls. The first one I was in order to paint a part of the dialog in a Green color (I do it by deriving a class from CStatic, catching the OnCtlColor event and returning a green brush).
Now I have another CStatic control which is used only for displaying text, and located on the first static (which painted the dialog in green).
my problem is that the second CStatic (used for displaying text) has a gray background which is very ugly.
how can I make the second CStatic transparent ?
p.s I tried to set the transparent style in the resources of the second static but it didnt help...