大神指点下,刚玩多文档,为什么人家程序云溪那个初始界面是主界面,而我的直接就是IDR_xxTYPE指示的界面了;
另外多文档下,一个继承CView的类只能产生一个类型绘图窗口吧,比如我不同响应下要产生窗口里只有一个图的,只有两幅图的,是不是只能再创建一个继承于CView的类,分别调用吗?

解决方案 »

  1.   

    在MSDN里面搜:
    Categorical List of MFC Samples
    To find a source code sample that illustrates a Microsoft Foundation Class Library feature or programming technique, select one of the following areas.application object OLE 
    collections ActiveX controls 
    context-sensitive help OpenGL 
    databases printing/preview 
    databound controls rectangle tracker (mouse) 
    dialogs and controls resources 
    documents splitter windows 
    dynamic-link libraries (DLLs) toolbars, status bars, dialog bars, and floating palettes 
    graphical display classes views 
    Internet window objects 
    menus Windows Extensions 
    multithreading Windows Common Controls 
    See AlsoMicrosoft Foundation Class Library Samples Index
      

  2.   

    可以一个view中显示两个图,然后放两个picture控件,把绘图的内容显示上去就行了,前一个问题两种界面不一样是因为创建的时候你选择的和别人的不一样,在用类向导创建工程的时候,仔细看每一页的每一个选项,不同的选项创建出来的界面也是不一样的