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

    How do i change the background color of a window

    Hi,
    I am unable to change the background color of my window.
    How do i change it?
    Please help me to do this.


  2. #2
    Join Date
    Apr 1999
    Posts
    3

    Re: How do i change the background color of a window

    void CTry::OnPaint()
    {
    CPaintDC dc(this);

    CRect rect;
    GetClientRect(rect);
    CBrush m_Brush(RGB(155,200,155));
    dc.FillRect(rect,&m_Brush);

    }


    }

    XingXing

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