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. Load Bitmap from a specified path

Load Bitmap from a specified path

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

    Hai Everybody, How to Load a Bitmap on a Dialog from a specified Path and it should be stretched to the entire screen that is already filled with dialog. For instance: 1.Dialog should fill the screen. No Problem working nice. 2.Bitmap should fill the screen from a specified path. Problem......... d:\\codeProject\\a.bmp It's for both win2000 & winCE. Thanks in advance Darwin DARWIN PAUL RAJ

    T 1 Reply Last reply
    0
    • S S DARWIN PAUL RAJ

      Hai Everybody, How to Load a Bitmap on a Dialog from a specified Path and it should be stretched to the entire screen that is already filled with dialog. For instance: 1.Dialog should fill the screen. No Problem working nice. 2.Bitmap should fill the screen from a specified path. Problem......... d:\\codeProject\\a.bmp It's for both win2000 & winCE. Thanks in advance Darwin DARWIN PAUL RAJ

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      here is Small piece of code that will help you out HBITMAP hbit=(HBITMAP)LoadImage(0,OpenFileDialog.m_ofn.lpstrFile,IMAGE_BITMAP,300,300,LR_LOADFROMFILE); and you got the handle the image ----------------------------- "I Think It will Work" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      S 1 Reply Last reply
      0
      • T ThatsAlok

        here is Small piece of code that will help you out HBITMAP hbit=(HBITMAP)LoadImage(0,OpenFileDialog.m_ofn.lpstrFile,IMAGE_BITMAP,300,300,LR_LOADFROMFILE); and you got the handle the image ----------------------------- "I Think It will Work" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

        S Offline
        S Offline
        S DARWIN PAUL RAJ
        wrote on last edited by
        #3

        Thank you, Where I have to specify my file path and LR_LOADFROMFILE is not supported by WinCE,It shows that undeclared identifier, When I refered MSDN and put Zero instead of LR_LOADFROMFILE. with regards DARWIN PAUL RAJ

        D 1 Reply Last reply
        0
        • S S DARWIN PAUL RAJ

          Thank you, Where I have to specify my file path and LR_LOADFROMFILE is not supported by WinCE,It shows that undeclared identifier, When I refered MSDN and put Zero instead of LR_LOADFROMFILE. with regards DARWIN PAUL RAJ

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          While help for LoadImage() does not say that LR_LOADFROMFILE can be used for the fuLoad parameter, it does mention it in the lpszName section as though it is a possibility. Have you search through each of the .H files to see if it is defined?


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          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