1. SetBkColor should also work.
You will need an handle/pointer to the DC which you can get with the GetDC function(API or MFC) if you do not have it.
The call to SetBkColor must be done in the OnDraw(or OnPaint method) or in the WM_PAINT message handler in SDK APPs
2. AfxRegisterWndClass is doing something similar in MFC programs. this must be called in the Create method.
Hope this helps, s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.