If I create a brush like so
HBRUSH hBrush = CreateSolidBrush(RGB(33, 33, 33));
and then later on, I want to change the color of the brush, how would I do this?
I googled a bit and found out that creating a bunch of different brushes is not the way to go.
I was thinking that one possibility would be to just set
hBrush to a new brush like so
hBrush = CreateSolidBrush(RGB(0, 0, 0));
everytime I wanted to use a different color, but this seems suspiciously easy, and I'm pretty sure that this would hog resources or something.
Another - presumably bad - idea of mine, was to use the above method, but always use
immediately after drawing. I have no idea if this is the right way to do things or not. Any help would be greatly appreciated.