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. CDocument::UpdateAllViews MFC

CDocument::UpdateAllViews MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
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.
  • P Offline
    P Offline
    P e t e r
    wrote on last edited by
    #1

    When sending GetDocument()->UpdateAllViews alle views are flickering once. Can anybody tell me how to disable that flickering? Do I have to modify OnUpdate? I tried to do something with InvalidateRect but it does not solve my problem. Best regards, Peter :confused:

    A 1 Reply Last reply
    0
    • P P e t e r

      When sending GetDocument()->UpdateAllViews alle views are flickering once. Can anybody tell me how to disable that flickering? Do I have to modify OnUpdate? I tried to do something with InvalidateRect but it does not solve my problem. Best regards, Peter :confused:

      A Offline
      A Offline
      Arman S
      wrote on last edited by
      #2

      HI, A view flickers because of the stuff it draws. So, try to optimize what they drawing. -- ====== Arman

      P 1 Reply Last reply
      0
      • A Arman S

        HI, A view flickers because of the stuff it draws. So, try to optimize what they drawing. -- ====== Arman

        P Offline
        P Offline
        P e t e r
        wrote on last edited by
        #3

        But it also appears with a window consisting of common controls like listboxes, buttons and so on... What call is responsible for this update (and flickering)?

        N A 2 Replies Last reply
        0
        • P P e t e r

          But it also appears with a window consisting of common controls like listboxes, buttons and so on... What call is responsible for this update (and flickering)?

          N Offline
          N Offline
          Nibu babu thomas
          wrote on last edited by
          #4

          Try adding these styles to the view WS_CLIPSIBLINGS, WS_CLIPCHILDREN


          Nibu thomas Software Developer

          1 Reply Last reply
          0
          • P P e t e r

            But it also appears with a window consisting of common controls like listboxes, buttons and so on... What call is responsible for this update (and flickering)?

            A Offline
            A Offline
            Arman S
            wrote on last edited by
            #5

            It seems you have put also window controls onto view. Again, I prone to say that in that case the controls are also redrawn (not updated). This may take some time too. You should provide more info on what you are doing to let us to be more concrete. Anyway, you should update not entire view but a part of it. You'd rather set a mask parameter into UpdateAllViews and get it from CView::OnUpdate method, then update the necessary part of a view. -- ====== Arman

            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