<<inside vc++>>,这样的例子很多,稍微好一点的书都有

解决方案 »

  1.   

    这个用MDI来说很容易吧?直接在CXXXApp::InitInstance() 添加对
    CMultiDocTemplate* pDocTemplate;
    pDocTemplate = new CMultiDocTemplate(
    IDR_MINIEXTYPE,
    RUNTIME_CLASS(CTestDoc),
    RUNTIME_CLASS(CChildFrame), // custom MDI child frame
    RUNTIME_CLASS(CTestView));
    AddDocTemplate(pDocTemplate); CMultiDocTemplate* pDocTemplate1;
    pDocTemplate1 = new CMultiDocTemplate(
    IDR_MINIEXTYPE,
    RUNTIME_CLASS(CTestDoc),
    RUNTIME_CLASS(CChildFrame), // custom MDI child frame
    RUNTIME_CLASS(CEditView));
    AddDocTemplate(pDocTemplate1);