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. A Problem on Bitmap

A Problem on Bitmap

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

    Hi guys I am facing a problem on how to make the Bitmap Added without disappearing when i minimize or maximize screen or just moving the program. My Bitmap graphics always disappear, i do not know how to use UpdateWindow Function to prevent this from happening can i have any demo projects that can guide me through this problem Thank You

    E 1 Reply Last reply
    0
    • P popo84

      Hi guys I am facing a problem on how to make the Bitmap Added without disappearing when i minimize or maximize screen or just moving the program. My Bitmap graphics always disappear, i do not know how to use UpdateWindow Function to prevent this from happening can i have any demo projects that can guide me through this problem Thank You

      E Offline
      E Offline
      eli15021979
      wrote on last edited by
      #2

      Hi, Did you tried to redraw the bitmap window? In your OnPaint() function try : m_BitmapWindow.RedrawWindow(); Regards, Eli

      P 2 Replies Last reply
      0
      • E eli15021979

        Hi, Did you tried to redraw the bitmap window? In your OnPaint() function try : m_BitmapWindow.RedrawWindow(); Regards, Eli

        P Offline
        P Offline
        popo84
        wrote on last edited by
        #3

        I did not use OnPaint Function to create the bitmaps I created a ShowBitmap(int x, int y, int type) function and some parameters for displaying the Bitmap, so what kind of other Functions would you recommend for me? Can UpdateWindows() be use?

        P 1 Reply Last reply
        0
        • E eli15021979

          Hi, Did you tried to redraw the bitmap window? In your OnPaint() function try : m_BitmapWindow.RedrawWindow(); Regards, Eli

          P Offline
          P Offline
          popo84
          wrote on last edited by
          #4

          I did not use OnPaint Function to create the bitmaps I created a ShowBitmap(int x, int y, int type) function and some parameters for displaying the Bitmap, so what kind of other Functions would you recommend for me? Can UpdateWindows() be use?

          1 Reply Last reply
          0
          • P popo84

            I did not use OnPaint Function to create the bitmaps I created a ShowBitmap(int x, int y, int type) function and some parameters for displaying the Bitmap, so what kind of other Functions would you recommend for me? Can UpdateWindows() be use?

            P Offline
            P Offline
            popo84
            wrote on last edited by
            #5

            Sorry what are the requirements i need to do before using this m_Bitmap.RedrawWindow(); Should i declare CDC m_Bitmap or CBitmap m_Bitmap?:)

            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