Solved

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

Posted on 1998-05-27
2
334 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
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 viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

760 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

19 Experts available now in Live!

Get 1:1 Help Now