Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC: customize CFrameWnd background. How?

MFC: customize CFrameWnd background. How?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++graphicsdebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lobanovski
    wrote on last edited by
    #1

    Hi all, an MFC application, MDI. VC7. the wizard has generated few classes for me. and one of them is the main frame CMainFrame (CFrameWnd). If there are no children, the user can see light gray background. How can i customize this background (draw a bitmap)? When i do ON_WM_PAINT -> OnPaint(void) { CPaintDC dc(this); // try to draw into dc } no effect! still standard light gray background! how do i cutomize the way background drawn? regards, alex debug - is my life style

    P 1 Reply Last reply
    0
    • L lobanovski

      Hi all, an MFC application, MDI. VC7. the wizard has generated few classes for me. and one of them is the main frame CMainFrame (CFrameWnd). If there are no children, the user can see light gray background. How can i customize this background (draw a bitmap)? When i do ON_WM_PAINT -> OnPaint(void) { CPaintDC dc(this); // try to draw into dc } no effect! still standard light gray background! how do i cutomize the way background drawn? regards, alex debug - is my life style

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      http://www.codeproject.com/dialog/mdibackgroundimage.asp[^]


      [

      ](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!

      L 1 Reply Last reply
      0
      • P PJ Arends

        http://www.codeproject.com/dialog/mdibackgroundimage.asp[^]


        [

        ](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!

        L Offline
        L Offline
        lobanovski
        wrote on last edited by
        #3

        :):):) wow! thank you!!! that't exactly what i looked for! regards, alex debug - is my life style

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups