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. Background Image

Background Image

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 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.
  • S Offline
    S Offline
    Subhashree
    wrote on last edited by
    #1

    Sir/Madam I saw the program in this website which explains about loading an Image as Backgound in MainFrame.I want to do the same but my application is being developed as Single document and my Base Class is View.Please help me load image in the mainframe for the same(Single document - base class - View) ThankingYou. Regards, Subha

    C 1 Reply Last reply
    0
    • S Subhashree

      Sir/Madam I saw the program in this website which explains about loading an Image as Backgound in MainFrame.I want to do the same but my application is being developed as Single document and my Base Class is View.Please help me load image in the mainframe for the same(Single document - base class - View) ThankingYou. Regards, Subha

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Well, if that's the case, then the only thing that is visible is the view, so you need to draw in the view's OnPaint. Remember, you're drawing over the area that people type into, or whatever else goes on in your view. I'm hoping it's a CFormView, in which case it will do the job nicely. Otherwise, it will work, but has the potential to be ugly. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

      S 1 Reply Last reply
      0
      • C Christian Graus

        Well, if that's the case, then the only thing that is visible is the view, so you need to draw in the view's OnPaint. Remember, you're drawing over the area that people type into, or whatever else goes on in your view. I'm hoping it's a CFormView, in which case it will do the job nicely. Otherwise, it will work, but has the potential to be ugly. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

        S Offline
        S Offline
        Subhashree
        wrote on last edited by
        #3

        It is not CFormView.Its CView only.I have all the functions in the form of Dialog box and I dont have anything to be done within the area of mainframe.What is the part of coding that I have to add in OnPaint to get the background image in the mainframe. regards, Subhashree

        C 1 Reply Last reply
        0
        • S Subhashree

          It is not CFormView.Its CView only.I have all the functions in the form of Dialog box and I dont have anything to be done within the area of mainframe.What is the part of coding that I have to add in OnPaint to get the background image in the mainframe. regards, Subhashree

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You know, if you created an account, you'd get an email so you'd know right away when someone answered you. Why do you have a view if you don't put anything in it ? You basically need to use LoadImage to load a bitmap from disk, then BitBlt or StretchBlt to draw it onto the view. From memory you found the code to do it in a dialog on CP - the code will be identical. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

          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