Solved

Updating views

Posted on 2001-08-13
5
203 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
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now