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. Displaying JPEG/BMP/GIF images in a dialog using VS.NET C++

Displaying JPEG/BMP/GIF images in a dialog using VS.NET C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++questioncsharpvisual-studio
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.
  • F Offline
    F Offline
    Franz Granlund 0
    wrote on last edited by
    #1

    Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?

    S K 2 Replies Last reply
    0
    • F Franz Granlund 0

      Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?

      S Offline
      S Offline
      Steven M Hunt
      wrote on last edited by
      #2

      Good news and bad news: the picture control is for bitmaps only. Sorry. However, you could find a custom control that displays JPEGS and attach it to a CStatic object in your dialog. I couldn't tell you where this control could be found, but i'm sure it's out there somewhere. -- Steve

      1 Reply Last reply
      0
      • F Franz Granlund 0

        Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?

        K Offline
        K Offline
        Ken Mazaika
        wrote on last edited by
        #3

        You would have to use someone else's control to do that, cximage (an article on code project) seems like the most popular way to do this.

        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