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. Get a HBITMAP from a BITMAP structure.

Get a HBITMAP from a BITMAP structure.

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicsxml
4 Posts 2 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.
  • V Offline
    V Offline
    VC Maniac
    wrote on last edited by
    #1

    hello all. I am reading some data from xml file. I memcpy it to a BITMAP structure variable. Now I need to convert this to HBITMAP. how do I do this?

    N 1 Reply Last reply
    0
    • V VC Maniac

      hello all. I am reading some data from xml file. I memcpy it to a BITMAP structure variable. Now I need to convert this to HBITMAP. how do I do this?

      N Offline
      N Offline
      Nishad S
      wrote on last edited by
      #2

      By using CreateBitmapIndirect...

      - NS - [ODBaseBtn]

      V 1 Reply Last reply
      0
      • N Nishad S

        By using CreateBitmapIndirect...

        - NS - [ODBaseBtn]

        V Offline
        V Offline
        VC Maniac
        wrote on last edited by
        #3

        Thanks!

        N 1 Reply Last reply
        0
        • V VC Maniac

          Thanks!

          N Offline
          N Offline
          Nishad S
          wrote on last edited by
          #4

          :) Welcome... Don't forget to call DeleteObject to delete it when it is no longer needed.

          - NS - [ODBaseBtn]

          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