child windows are not being updated + mdi
-
:(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
-
:(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
To refresh the views use
CDocument::UpdateAllView(NULL)
that force an update of the CView and then useCView::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 ;) -
To refresh the views use
CDocument::UpdateAllView(NULL)
that force an update of the CView and then useCView::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 ;)thanks:)