Solved

Updating views

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Focus not getting shifted out of  editbox 2 63
Problem with SqlConnection 4 170
Create a path if not exists 7 77
Issues with C++ Class 19 92
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

810 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