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. Invalidating() all view

Invalidating() all view

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
6 Posts 3 Posters 2 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.
  • S Offline
    S Offline
    S O S
    wrote on last edited by
    #1

    How can I Invalidate() all views in a MFC MDI app?

    R J 2 Replies Last reply
    0
    • S S O S

      How can I Invalidate() all views in a MFC MDI app?

      R Offline
      R Offline
      Roman Fadeyev
      wrote on last edited by
      #2

      UpdateAllViews() in CDocument. Look at http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=358653&df=5#xx358653xx for details

      S 1 Reply Last reply
      0
      • R Roman Fadeyev

        UpdateAllViews() in CDocument. Look at http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=358653&df=5#xx358653xx for details

        S Offline
        S Offline
        S O S
        wrote on last edited by
        #3

        This doesn't even repaint the current view...

        S 1 Reply Last reply
        0
        • S S O S

          This doesn't even repaint the current view...

          S Offline
          S Offline
          S O S
          wrote on last edited by
          #4

          OK, nevermind that, that was my bad. But what I need to do is repaint all views of all documents

          1 Reply Last reply
          0
          • S S O S

            How can I Invalidate() all views in a MFC MDI app?

            J Offline
            J Offline
            Jim A Johnson
            wrote on last edited by
            #5

            AfxGetMainWnd()->Invalidate() is one way.

            S 1 Reply Last reply
            0
            • J Jim A Johnson

              AfxGetMainWnd()->Invalidate() is one way.

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

              I tried, but that didn't seem to update any windows? Hmm maybe I did it a bit wrong.. I'll see... Nope, doesn't effect the child windows...

              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