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. child windows are not being updated + mdi

child windows are not being updated + mdi

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 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.
  • V Offline
    V Offline
    Veeresh Hiremath
    wrote on last edited by
    #1

    :(I have an MDI application and once i open two or more child windows/views at a time, then the data are not updated and are not affecting on the child windows. Could any one help me out? -- modified at 7:55 Friday 14th April, 2006

    R 1 Reply Last reply
    0
    • V Veeresh Hiremath

      :(I have an MDI application and once i open two or more child windows/views at a time, then the data are not updated and are not affecting on the child windows. Could any one help me out? -- modified at 7:55 Friday 14th April, 2006

      R Offline
      R Offline
      Russell
      wrote on last edited by
      #2

      To refresh the views use CDocument::UpdateAllView(NULL) that force an update of the CView and then use CView::OnUpdate to initialize the view assuming that the document is changed so everything(variables) must be reloaded from the document. Elseway, a simple way is to study the constructor of the CView, probally you are not considering that the first CView has an initialization that you forgot in the other Views. Have a nice code day ;)

      V 1 Reply Last reply
      0
      • R Russell

        To refresh the views use CDocument::UpdateAllView(NULL) that force an update of the CView and then use CView::OnUpdate to initialize the view assuming that the document is changed so everything(variables) must be reloaded from the document. Elseway, a simple way is to study the constructor of the CView, probally you are not considering that the first CView has an initialization that you forgot in the other Views. Have a nice code day ;)

        V Offline
        V Offline
        Veeresh Hiremath
        wrote on last edited by
        #3

        thanks:)

        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