When I/you declare the fields of the WNDCLASS, the one of them is hbrBackground. Well, the way petzold told me to set the background of the window class is this:
Why do you need to typecast with the HBRUSH type?Code:wndclass.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
Thanks.
--Garfield