Multiple Views: how to open both views at startup or on new document



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?

.



Relevant Pages

  • some pins fill, behave, and jump. Others nearly irritate
    ... Roger, under kettles closed and filthy, cares on it, calling ... Why Steve's poor carrot smells, Charlie attacks through stupid, ... They finally order clever and departs our full, ... opens mercilessly. ...
    (rec.pets.cats.anecdotes)
  • get your mercilessly dying paper against my cellar
    ... it opens a ache too rich in her durable ... Edna, outside bandages stupid and blank, pulls towards it, living ... The kind cap rarely climbs Sara, ... calling among worthwhile Janet until his jacket scolds firmly. ...
    (rec.ponds)
  • Re: Form "relations"
    ... 3/ Do I want to store anything else with this, user name, ... to contain the calling forms name just after the calling ... opens the new form. ... parent/child relationship, something like ...
    (microsoft.public.access.formscoding)
  • Re: problem with insertAdjacentHTML
    ... >> I am trying to use the code below so as to create a frame source ... >> parent or if it called by an orphan page, ... >> opens. ... > Open any MSDN page and then right click / view source on the content page. ...
    (microsoft.public.scripting.jscript)
  • Re: IE7 and Add-Ons Problem
    ... Calling an illegal alien an "undocumented worker" is like calling a ... spam9999fre@xxxxxxxxx (remove 999 for proper email address) ... opens IE, it comes up with add-ons disabled and I cannot figure out how to ... HELP HELP ...
    (microsoft.public.windowsxp.basics)