Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • Last Modified:

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

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
pbhugra
Asked:
pbhugra
1 Solution
 
Andy_KeysCommented:
You can avoid the dialog by creating the templates after the       ProcessShellCommand(cmdInfo)in the InitInstance.
0
 
vhegdeCommented:
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

Technology Partners: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now