MFC MDI Multiple Views in Separate MDI Child Windows 
Author Message
 MFC MDI Multiple Views in Separate MDI Child Windows

hi everybody,

I would like to create a MFC MDI application having one document
using a data file and displaying those data in several Views in
Separate MDI Child Windows:
 * The first view, associated to the first MDI Child Window will
   display data as an image (will be associated with the OPEN-FILE
   command)
 * The second view, associated to the second MDI Child Window will
   display the same data as a graph
 * The third view, associated to the third MDI Child Window will
   display the same data as column of text

Could somebody please tell me how to do that.

Thank you in advance




Sun, 08 Aug 2004 23:53:16 GMT  
 MFC MDI Multiple Views in Separate MDI Child Windows
As you probably know, you'll need 5 classes: one document, one child frame, and
three views.  When the document is first opened, the CMultiDocTemplate will open
the document, and create a child frame with one of the views in it.  One
solution to opening subsequent views (there are other good methods) is to derive
a class from CMultiDocTemplate, and use that in InitInstance, in place of the
base class.  In your derived class, in CreateNewFrame, you can repeat the steps
of creating frame windows, substituting the other view classes each time.  Look
at the CDocTemplate::CreateNewFrame source in DocTempl.cpp.


Mon, 09 Aug 2004 14:00:38 GMT  
 MFC MDI Multiple Views in Separate MDI Child Windows



Quote:
> hi everybody,

> I would like to create a MFC MDI application having one document
> using a data file and displaying those data in several Views in
> Separate MDI Child Windows:
>  * The first view, associated to the first MDI Child Window will
>    display data as an image (will be associated with the OPEN-FILE
>    command)
>  * The second view, associated to the second MDI Child Window will
>    display the same data as a graph
>  * The third view, associated to the third MDI Child Window will
>    display the same data as column of text

Take a look at CHKBOOK sample in msdn. There are also many samples on
www.codeguru.com

--
"My software never has bugs. It just develops random features."



Mon, 09 Aug 2004 15:16:13 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Multiple MDI Child Frames/View

2. Multiple View MDI Child Window Problem

3. Q. multiple child windows, without MDI

4. Q. multiple child windows, without MDI

5. Opening a new MDI child when no MDI Child exists

6. Opening a new MDI child from a MDI Child

7. How develop MDI application with child forms like VB MDI and Child forms

8. MDI child windows with out Doc/View Format

9. switching between MDI child windows of different views

10. MDI Child windows without Doc/View Format

11. Using Form Views as MDI Child Windows

12. switching between MDI child windows of different views

 

 
Powered by phpBB® Forum Software