[RESOLVED] How init new window with color
One solution is
Code:
wincl.hbrBackground = CreateSolidBrush(RGB(202, 238, 255));
where WNDCLASSEX wincl is class.
This solution is improvident because for each window must be one class. Better is one class for popup, one for ToolTip, for Controls and main windows.
This situation is similar to wincl.hIcon and wincl.hCursor. It is possible many windows with different colors, cursors and icons without creating one class for each window?
----
I solved it: better than init with color, erase background on WM_ERASEBKGND