Solved

Updating views

Posted on 2001-08-13
5
216 Views
Last Modified: 2010-04-02
I have a multi view sdi app with all the views connected.
if i open a document in one view it opens in all views.
but when I edit the text in one view the changes are not reflected in the other views.  what is the proper way to update the other views to show the changes in the document.
0
Comment
Question by:jimmy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 6

Expert Comment

by:Triskelion
ID: 6381486
Examine the UpdateData() function.
0
 
LVL 4

Accepted Solution

by:
pagladasu earned 100 total points
ID: 6382983
Check the
UpdateAllViews() function of the Document class
0
 
LVL 2

Expert Comment

by:Thangs
ID: 6382998
First U should call SetModifiedFlag() to true and then call update all views. try it out. If the modified flag is not set to true, CDocument will ignore the UpdateAllViews() call.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6851416
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "pagladasu" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6874534
Per recommendation comment force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
White board coding practice 3 98
Least Squares Curve Fitting 4 133
C++ :Change value from  DisableCMD registry 4 80
find Speed using GPS latitude & longitude 4 159
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question