Solved

VC++ question: One Template...change view at Runtime, Doc and Frame remains same

Posted on 1998-05-27
2
353 Views
Last Modified: 2010-04-10
Our problem is we have got a view which should be converted to another view i.e. previous view should be destroyed and the document should remain the same.
We dont want to register two document templates because it pops up a dialog asking for the type of document to be opened.
Also on 'new' document, by default the opened document will be in one of the mentioned two views depending on registry setting which can be changed anytime.
We are saving the view, in which a document was stored. So while opening a saved fileit should be opened in appropriate view type...
A challenging question can win u quite some points...
and be of a great help to me..
Thanx...
Prashant Bhugra
0
Comment
Question by:pbhugra
2 Comments
 
LVL 1

Expert Comment

by:Andy_Keys
ID: 1164803
You can avoid the dialog by creating the templates after the       ProcessShellCommand(cmdInfo)in the InitInstance.
0
 

Accepted Solution

by:
vhegde earned 200 total points
ID: 1164804
Looks like you need single document with multiple views on it.
you can look at the source code of VSWAP32 project available
at microsoft site. Search for the keyword "sing document with
multiple views". I think this will definitely help you
to solve your problem

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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 video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

813 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

18 Experts available now in Live!

Get 1:1 Help Now