Multiple Views: how to open both views at startup or on new document
- From: "Manuel M" <manuel.matias@xxxxxxxxx>
- Date: 10 Sep 2006 07:46:19 -0700
Following the CHKBOOK sample in MSDN I finally have two
different views associated with the same document, and working
simultaneously. The problem is that when I run my program I
only get the first view. The second view only appears when I
*open* a document from a file, and not when I start a new one.
The cause is no wonder, because the piece of code that opens
the second view is only inside the OpenDocumentFile() function.
That makes sense in the sample, which is designed to work always
on a file (either is opens an existing file, or it creates a new
one).
Q: What code should I add where, for my application to open both
views on a *new* document?
Furthermore, I have learnt that you can resize a view by calling
its parent frame's MoveWindow() function. I would like to size
each of my two views to a certain desired size at startup. What is
the appropriate place to add this code?
.
- Follow-Ups:
- Re: Multiple Views: how to open both views at startup or on new document
- From: Joseph M . Newcomer
- Re: Multiple Views: how to open both views at startup or on new document
- Prev by Date: Re: Converting text to Rich Text Format
- Next by Date: Re: 2 CListCtrl with one hor. scrollbar
- Previous by thread: 2 CListCtrl with one hor. scrollbar
- Next by thread: Re: Multiple Views: how to open both views at startup or on new document
- Index(es):
Relevant Pages
|