Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1998-05-27
2
Medium Priority
?
382 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 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

722 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