CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: color window

  1. #1
    Join Date
    Mar 2004
    Location
    Bangalore,karnataka,India
    Posts
    13

    Arrow color window

    hello
    i created a dialog based application and using
    Code:
    CClientDC dc(this);
    CRect r;
    GetClientRect(&r);
    dc.Rectangle(r);
    i draw color to the dialog box. but, my problem is whenever OnPaint() in called, the color will over write all buttons etc. how to make the buttons visible again?

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: color window

    If you want colored dialogs or controls you must handle WM_CTLCOLOR message.

    See an example here.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

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