I have searched but I can't find any tips on how to change a windows background color during a programs execution. I can change it before the window is registerd, but not afterward.
how is that done??
in advance, thanks
I have searched but I can't find any tips on how to change a windows background color during a programs execution. I can change it before the window is registerd, but not afterward.
how is that done??
in advance, thanks
Do you mean the client area?
I havent checked, but I guess if you use CreateSolidBrush() to create another background colour, you can then call SelectObject() to select it........then if you repaint the client area it should be a different colour....
CClientDC pDC(this);
RECT Rect;
GetClientRect( &Rect );
CBrush RedBrush( RGB( 255, 0, 0 ) );
pDC.FillRect(&Rect, RedBrush);
Invalidate();
UpdateWindow();
Something along the lines of that should fill it with red