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. HOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++

HOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++graphicstutorialquestion
5 Posts 5 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.
  • P Offline
    P Offline
    phijophlip
    wrote on last edited by
    #1

    Hello friends, I am facing problem how to load the bitmap to dialog form in MFC. Can anyone help me in this matter. Can any one help me in this matter?. Can explain how to load the bit map with a sample code in MFC. Hoping for a reply on this issue. From Phijo :)

    P B H V 4 Replies Last reply
    0
    • P phijophlip

      Hello friends, I am facing problem how to load the bitmap to dialog form in MFC. Can anyone help me in this matter. Can any one help me in this matter?. Can explain how to load the bit map with a sample code in MFC. Hoping for a reply on this issue. From Phijo :)

      P Offline
      P Offline
      Parthi_Appu
      wrote on last edited by
      #2

      If you want to load bitmap from your resource then use LoadBitmap(..) Refer LoadBitmap[^] if the bitmap is a file in your PC then use LoadImage(...) Refer LoadImage[^]

      Do your Duty and Don't expect the Result

      1 Reply Last reply
      0
      • P phijophlip

        Hello friends, I am facing problem how to load the bitmap to dialog form in MFC. Can anyone help me in this matter. Can any one help me in this matter?. Can explain how to load the bit map with a sample code in MFC. Hoping for a reply on this issue. From Phijo :)

        B Offline
        B Offline
        Bravoone_2006
        wrote on last edited by
        #3

        Import bitmap-> create a new picture control select properties then select type = bitmap and image = "your image" !!!!

        Bravoone

        1 Reply Last reply
        0
        • P phijophlip

          Hello friends, I am facing problem how to load the bitmap to dialog form in MFC. Can anyone help me in this matter. Can any one help me in this matter?. Can explain how to load the bit map with a sample code in MFC. Hoping for a reply on this issue. From Phijo :)

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          See CImage::Load or LoadImage CImage::Load(...) then use CImage::BitBlt(...) and in the end use CImage::Detach()

          _**


          **_

          WhiteSky


          1 Reply Last reply
          0
          • P phijophlip

            Hello friends, I am facing problem how to load the bitmap to dialog form in MFC. Can anyone help me in this matter. Can any one help me in this matter?. Can explain how to load the bit map with a sample code in MFC. Hoping for a reply on this issue. From Phijo :)

            V Offline
            V Offline
            Vipin Aravind
            wrote on last edited by
            #5

            There are several ways to do what you want:- 1)picture control. 2)draw in the Dialog's paint handler To get to the bitmap in the resource file, you can use LoadImage Ofcourse you could draw on a owner draw button also.

            Click here for Vipin's Blog

            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