-
November 28th, 2015, 07:35 AM
#1
[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
Last edited by Borneq; November 28th, 2015 at 09:26 AM.
Reason: my idea
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|