Solved

Updating views

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

840 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