CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2014
    Posts
    21

    [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
  •  





Click Here to Expand Forum to Full Width

Featured