This is my first time trying to build an interface with pure winapi, everything is going fine except for an issue with static controls backgrounds.
I have several STATIC controls, I am able to set the background transparent for all of them with
which seems to reduce the problem slightly but does not solve it. Ideally I would like to have a transparent background without the bleed over, but am willing to settle for having the one control not have the transparency. So the question is, how do I either prevent the bleed or keep the specific controls background from being transparent. Any thoughts/suggestions/ideas are appreciated.
That first line doesn't look right. I guess it is for class registration. What is COLOR_BACKGROUND? If it isn't a brush, that code is wrong, I would say. If COLOR_BACKGROUND is a system color, the assignment needs to be (COLOR_BACKGROUND + 1);, but I don't think that's a system color. That's more likely a color of yours. If it is a color of yours, you first need to create the brush using CreateSolidBrush() and then assign it as background.
You can reuse the brush if you save it in a global or otherwise accessible variable.