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. displaying bitmaps

displaying bitmaps

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++graphicsquestion
5 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.
  • A Offline
    A Offline
    Amr Shahin
    wrote on last edited by
    #1

    hi everyone im developing an MFC project that(among other things) displays a bitmap directly on the form. the problem is that when i draw a large picture and move the windows several times it stops displaying!! or display a part of the picture. any help ??

    H stefanmihaimogaS 2 Replies Last reply
    0
    • A Amr Shahin

      hi everyone im developing an MFC project that(among other things) displays a bitmap directly on the form. the problem is that when i draw a large picture and move the windows several times it stops displaying!! or display a part of the picture. any help ??

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Hi Amr Shahin, Stop display? do you use WM_PAINT Can you be more specific

      1 Reply Last reply
      0
      • A Amr Shahin

        hi everyone im developing an MFC project that(among other things) displays a bitmap directly on the form. the problem is that when i draw a large picture and move the windows several times it stops displaying!! or display a part of the picture. any help ??

        stefanmihaimogaS Offline
        stefanmihaimogaS Offline
        stefanmihaimoga
        wrote on last edited by
        #3

        Are you using a CStatic object or you draw it directly by OnPaint method? The first is a sure way to do the drawing but for the second method you need a double buffered DC to erase any flickering on the screen / window. Good luck and good coding!

        A 1 Reply Last reply
        0
        • stefanmihaimogaS stefanmihaimoga

          Are you using a CStatic object or you draw it directly by OnPaint method? The first is a sure way to do the drawing but for the second method you need a double buffered DC to erase any flickering on the screen / window. Good luck and good coding!

          A Offline
          A Offline
          Amr Shahin
          wrote on last edited by
          #4

          im using the onpaint method; so i guess i should use the double buffered DC; the problem that i dont know what the double buffered DC is !!! :$. i only use regular DC! can u plz tell me how to use a double buffered DC ?? thanks alot

          stefanmihaimogaS 1 Reply Last reply
          0
          • A Amr Shahin

            im using the onpaint method; so i guess i should use the double buffered DC; the problem that i dont know what the double buffered DC is !!! :$. i only use regular DC! can u plz tell me how to use a double buffered DC ?? thanks alot

            stefanmihaimogaS Offline
            stefanmihaimogaS Offline
            stefanmihaimoga
            wrote on last edited by
            #5

            I recommend you use Keith Rule's Flicker Free Drawing In MFC[^] Good luck and keep the good coding!

            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