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. Desktop FLASHING?!

Desktop FLASHING?!

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
8 Posts 4 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.
  • G Offline
    G Offline
    gh
    wrote on last edited by
    #1

    Hi all, I have a MDI MFC Application that causes OTHER applications that happen to be running at the same time to FLICKER uncontrollably whenever my application updates/refreshs itself. I understand how EraseBackground and PreCreateWindow can be used to eliminate flicker within the same application, but how I do I prevent my application from causing other apps to flicker? Many thanks in advance!

    C L 2 Replies Last reply
    0
    • G gh

      Hi all, I have a MDI MFC Application that causes OTHER applications that happen to be running at the same time to FLICKER uncontrollably whenever my application updates/refreshs itself. I understand how EraseBackground and PreCreateWindow can be used to eliminate flicker within the same application, but how I do I prevent my application from causing other apps to flicker? Many thanks in advance!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You're not create a CWindowDC with NULL, are you ? Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff. Picture a world without war, without hate. And I can picture us attacking that world, because they would never expect it.

      Sonork ID 100.10002:MeanManOz

      I live in Bob's HungOut now

      G 1 Reply Last reply
      0
      • C Christian Graus

        You're not create a CWindowDC with NULL, are you ? Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff. Picture a world without war, without hate. And I can picture us attacking that world, because they would never expect it.

        Sonork ID 100.10002:MeanManOz

        I live in Bob's HungOut now

        G Offline
        G Offline
        gh
        wrote on last edited by
        #3

        Hi, Thanks for replying, however I am not sure what CWindowDC is/has to do with MFC? Could you elaborate?

        C 1 Reply Last reply
        0
        • G gh

          Hi, Thanks for replying, however I am not sure what CWindowDC is/has to do with MFC? Could you elaborate?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          CWindowDC w; w.CreateCompatibleDC(NULL); will give you access to a DC for the entire screen. I thought maybe you were causing the whole screen to be refreshed somehow. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff. Picture a world without war, without hate. And I can picture us attacking that world, because they would never expect it.

          Sonork ID 100.10002:MeanManOz

          I live in Bob's HungOut now

          G 1 Reply Last reply
          0
          • C Christian Graus

            CWindowDC w; w.CreateCompatibleDC(NULL); will give you access to a DC for the entire screen. I thought maybe you were causing the whole screen to be refreshed somehow. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001 Picture the daffodil. And while you do that, I'll be over here going through your stuff. Picture a world without war, without hate. And I can picture us attacking that world, because they would never expect it.

            Sonork ID 100.10002:MeanManOz

            I live in Bob's HungOut now

            G Offline
            G Offline
            gh
            wrote on last edited by
            #5

            No...I am doing no such thing...My app is a simple MFC MDI application - real straight forward. Anyone have a inkling as to what might be happening?

            1 Reply Last reply
            0
            • G gh

              Hi all, I have a MDI MFC Application that causes OTHER applications that happen to be running at the same time to FLICKER uncontrollably whenever my application updates/refreshs itself. I understand how EraseBackground and PreCreateWindow can be used to eliminate flicker within the same application, but how I do I prevent my application from causing other apps to flicker? Many thanks in advance!

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

              if you are 'doing' graphics and your display is set to 8-bit color (aka 256 color mode) then you are probably seeing palette flashing. You need to do a little research about palette management.

              G 1 Reply Last reply
              0
              • L Lost User

                if you are 'doing' graphics and your display is set to 8-bit color (aka 256 color mode) then you are probably seeing palette flashing. You need to do a little research about palette management.

                G Offline
                G Offline
                gh
                wrote on last edited by
                #7

                My screen is set to "million colors". In addition, my own application is NOT flickering/flashing - _other_ applications that are also on the desktop are... ?

                N 1 Reply Last reply
                0
                • G gh

                  My screen is set to "million colors". In addition, my own application is NOT flickering/flashing - _other_ applications that are also on the desktop are... ?

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  Are you attempting to steal the focus anywhere in your program? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

                  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