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. Double buffering

Double buffering

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsperformance
6 Posts 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Actually what iam doing now means i created one dialog on that iam drawing a image everything is working fine but its flickering continuously.so now my idea was without dialog i want to save that drawing part in memory so that it can be used for showing the report.

    C L L S S 5 Replies Last reply
    0
    • L Lost User

      Actually what iam doing now means i created one dialog on that iam drawing a image everything is working fine but its flickering continuously.so now my idea was without dialog i want to save that drawing part in memory so that it can be used for showing the report.

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      What? Could you please elaborate a bit your scenario?

      Veni, vidi, vici.

      1 Reply Last reply
      0
      • L Lost User

        Actually what iam doing now means i created one dialog on that iam drawing a image everything is working fine but its flickering continuously.so now my idea was without dialog i want to save that drawing part in memory so that it can be used for showing the report.

        L Offline
        L Offline
        Legor
        wrote on last edited by
        #3

        You have to be more specific. What does a dialog have to do with how you save an image? And what do you mean by saving the image directly in memory?

        1 Reply Last reply
        0
        • L Lost User

          Actually what iam doing now means i created one dialog on that iam drawing a image everything is working fine but its flickering continuously.so now my idea was without dialog i want to save that drawing part in memory so that it can be used for showing the report.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What image and where are you trying to save it?

          1 Reply Last reply
          0
          • L Lost User

            Actually what iam doing now means i created one dialog on that iam drawing a image everything is working fine but its flickering continuously.so now my idea was without dialog i want to save that drawing part in memory so that it can be used for showing the report.

            S Offline
            S Offline
            Software_Developer
            wrote on last edited by
            #5

            Double buffering articles. Double Buffering With GDI+[^] Flicker Free Drawing In MFC[^] http://www.robertelder.ca/doublebuffering/[^

            1 Reply Last reply
            0
            • L Lost User

              Actually what iam doing now means i created one dialog on that iam drawing a image everything is working fine but its flickering continuously.so now my idea was without dialog i want to save that drawing part in memory so that it can be used for showing the report.

              S Offline
              S Offline
              Stefan_Lang
              wrote on last edited by
              #6

              When your dialog contains an image, and it is flickering, then you're doing the drawing at the wrong place in your code. You should place your drawing code in the OnDraw(...) callback. See http://msdn.microsoft.com/en-us/library/e6htdchf.aspx[^]

              GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto) Point in case: http://www.infoq.com/news/2014/02/apple_gotofail_lessons[^]

              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