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. Show or Hide image

Show or Hide image

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

    I am using 2 images, one at a time. Is there a way to hide the other image while the other one is visible? Thanks for all the help! waxiegurl

    O D 2 Replies Last reply
    0
    • W waxie

      I am using 2 images, one at a time. Is there a way to hide the other image while the other one is visible? Thanks for all the help! waxiegurl

      O Offline
      O Offline
      Owner drawn
      wrote on last edited by
      #2

      An option would be to select both of them into separate memory dc's and display them as and when needed. Invalidate the surface on which you are drawing them. So it will be like hiding and unhiding.

      Jesus Loves:rose:

      --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

      1 Reply Last reply
      0
      • W waxie

        I am using 2 images, one at a time. Is there a way to hide the other image while the other one is visible? Thanks for all the help! waxiegurl

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

        Are the images part of a static or picture control? If so, just use ShowWindow(SW_HIDE).


        "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

        W 1 Reply Last reply
        0
        • D David Crow

          Are the images part of a static or picture control? If so, just use ShowWindow(SW_HIDE).


          "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

          W Offline
          W Offline
          waxie
          wrote on last edited by
          #4

          This does not work. I've already tried this one. :( waxie

          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