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 a JPG in MFC

Displaying a JPG in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
4 Posts 4 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.
  • T Offline
    T Offline
    toothless boots
    wrote on last edited by
    #1

    I would like to know how to display a JPG or high res BMP image on a MFC Dialog window.

    L G F 3 Replies Last reply
    0
    • T toothless boots

      I would like to know how to display a JPG or high res BMP image on a MFC Dialog window.

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      find the cximage lib here on cp ;)


      "there is no spoon"
      biz stuff   about me

      1 Reply Last reply
      0
      • T toothless boots

        I would like to know how to display a JPG or high res BMP image on a MFC Dialog window.

        G Offline
        G Offline
        gUrM33T
        wrote on last edited by
        #3

        Or use OleLoadPicture() Gurmeet


        BTW, can Google help me search my lost pajamas?

        My Articles: HTML Reader C++ Class Library, Numeric Edit Control

        1 Reply Last reply
        0
        • T toothless boots

          I would like to know how to display a JPG or high res BMP image on a MFC Dialog window.

          F Offline
          F Offline
          f64
          wrote on last edited by
          #4

          You can use OleLoadPicturePath load the picture from a file, you'll get an IPicture then use the method Render to display it into a DC. Or, check Dr. Yovav Gad's article CPicture - The Yovav (Horror) PictureShow Fabian

          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