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. Backgroud

Backgroud

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++javascripthelpquestion
3 Posts 3 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.
  • B Offline
    B Offline
    blink4me
    wrote on last edited by
    #1

    Hi, I just created an app using VC++ and I think it needs a little spice so, I want to include graphics in my app, how can I put an image in the background (not 16 colors, 256+) like in msn messenger. I would like an image and I could put my controls on top of it. Actually when I do that today, my bitmap takes the whole place and all the controls are under it. And also, I want to make my image fit the entire application canvas. Help me if you can please. // JS Paquet cout << "Thank you all" << endl;

    M P 2 Replies Last reply
    0
    • B blink4me

      Hi, I just created an app using VC++ and I think it needs a little spice so, I want to include graphics in my app, how can I put an image in the background (not 16 colors, 256+) like in msn messenger. I would like an image and I could put my controls on top of it. Actually when I do that today, my bitmap takes the whole place and all the controls are under it. And also, I want to make my image fit the entire application canvas. Help me if you can please. // JS Paquet cout << "Thank you all" << endl;

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      If you want to use GDI+ check this Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      1 Reply Last reply
      0
      • B blink4me

        Hi, I just created an app using VC++ and I think it needs a little spice so, I want to include graphics in my app, how can I put an image in the background (not 16 colors, 256+) like in msn messenger. I would like an image and I could put my controls on top of it. Actually when I do that today, my bitmap takes the whole place and all the controls are under it. And also, I want to make my image fit the entire application canvas. Help me if you can please. // JS Paquet cout << "Thank you all" << endl;

        P Offline
        P Offline
        Paul M Watt
        wrote on last edited by
        #3

        Use stretchBlt, and paint the image in the WM_ERASEBKGND message.

        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