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. Loading 2 bitmaps in one picture control one at a time

Loading 2 bitmaps in one picture control one at a time

Scheduled Pinned Locked Moved C / C++ / MFC
questionlounge
2 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.
  • W Offline
    W Offline
    waxie
    wrote on last edited by
    #1

    Hi guys, I've been trying to load bitmaps into my dialog. I have one picture control and i have 2 bitmaps that i want to use. this is part my code in general: if (Firstsituation) { thisimage.SetBitmap(bmp1); } else { thisimage.SetBitmap(bmp2); } I'm wondering why it keeps on loading the image i have at default at my picture control properties. I just can't load them the way I want them to. Even when I remove the code for LoadBitmap(CONTROL), it still executes the project, though a bit of code is missing. Anyone who can enlighten me? I'm kinda confused. waxiegal:rose:

    N 1 Reply Last reply
    0
    • W waxie

      Hi guys, I've been trying to load bitmaps into my dialog. I have one picture control and i have 2 bitmaps that i want to use. this is part my code in general: if (Firstsituation) { thisimage.SetBitmap(bmp1); } else { thisimage.SetBitmap(bmp2); } I'm wondering why it keeps on loading the image i have at default at my picture control properties. I just can't load them the way I want them to. Even when I remove the code for LoadBitmap(CONTROL), it still executes the project, though a bit of code is missing. Anyone who can enlighten me? I'm kinda confused. waxiegal:rose:

      N Offline
      N Offline
      namaskaaram
      wrote on last edited by
      #2

      perhaps this link might enlighten uhttp://www.codeproject.com/bitmap/bmpscroll.asp[^] dont want,dont want thinking,climbing on head and jumping grass! (venda venda ennu vicharikumbol thellayill keyaree chadunnoda pulle!)

      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