How to use 2 different CFormViews?

I am very new to MFC programming and need many advice.   Smile

I'm trying to create a MFC application with 2 different CFormViews, one is the main view and one is the child view.  However, I don't want to use the document/view architecture since I don't really need the extra stuf. 

so the question is   do I need to enable document/view option to use CFormView   I tried to create a multple-top level application but I notice when I disable the document/view option the CChildView class can not be easily changed to CFormView.  is there a formal method to do this

my 2nd queston is, if I have two different CFormViews and I want to create a new top-level frame that either uses CFormView 1 or 2 based on what the user selects how do I do this   many many thanks again Smile



Answer this question

How to use 2 different CFormViews?

  • Shady9399

     vc80crtdll wrote:
    so the question is   do I need to enable document/view option to use CFormView  


    There is no way to use CFormView without a CDocument. Also there is no overhead... Big Smile

     vc80crtdll wrote:
    I tried to create a multple-top level application but I notice when I disable the document/view option the CChildView class can not be easily changed to CFormView.  is there a formal method to do this


    No there is no way. Every class that has the View in its name need a CDocument in some way.

     vc80crtdll wrote:
    my 2nd queston is, if I have two different CFormViews and I want to create a new top-level frame that either uses CFormView 1 or 2 based on what the user selects how do I do this   many many thanks again Smile


    There is a sample here doing exactly this:
    http://support.microsoft.com/kb/q141334/

  • How to use 2 different CFormViews?