Solved

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

Posted on 1998-05-27
2
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 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 viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

632 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