CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    5

    Question How to easy change the background of a Dialogue

    Hi,
    I use Visual C++ MFC in Visual Studio, would like to ask how I could change the background color of the main dialogue or put an image as background of the dialogue?
    Should it be added in the OnPaint() routine?
    Thanks in advance!

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: How to easy change the background of a Dialogue

    For changing the bk color of your dialog you can use SetDialogBkColor()


    For placing an image on your dialog look at this article: Bitmap Dialog Class

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

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