:)

解决方案 »

  1.   

    CWnd是视图类,用户看见的视图都是他产生的.好象是这样.
      

  2.   

    楼上的不讲乱说话吧
    The CWnd class provides the base functionality of all window classes in the Microsoft Foundation Class Library. A CWnd object is distinct from a Windows window, but the two are tightly linked. A CWnd object is created or destroyed by the CWnd constructor and destructor. The Windows window, on the other hand, is a data structure internal to Windows that is created by a Create member function and destroyed by the CWnd virtual destructor. The DestroyWindow function destroys the Windows window without destroying the object. The CWnd class and the message-map mechanism hide the WndProc function. Incoming Windows notification messages are automatically routed through the message map to the proper OnMessage CWnd member functions. You override an OnMessage member function to handle a member’s particular message in your derived classes.The CWnd class also lets you create a Windows child window for your application. Derive a class from CWnd, then add member variables to the derived class to store data specific to your application. Implement message-handler member functions and a message map in the derived class to specify what happens when messages are directed to the window.You create a child window in two steps. First, call the constructor CWnd to construct the CWnd object, then call the Create member function to create the child window and attach it to the CWnd object. When the user terminates your child window, destroy the CWnd object, or call the DestroyWindow member function to remove the window and destroy its data structures.Within the Microsoft Foundation Class Library, further classes are derived from CWnd to provide specific window types. Many of these classes, including CFrameWnd, CMDIFrameWnd, CMDIChildWnd, CView, and CDialog, are designed for further derivation. The control classes derived from CWnd, such as CButton, can be used directly or can be used for further derivation of classes
      

  3.   

    CWnd类提供了与微软基础类库中所有窗口类的基本功能。
    CWnd对家与Windows的窗口不同,但是两者有紧密联系。CWnd对象是由CWnd的构造函数和析构函数创建或销毁的。另一方面,Windows的窗口是Windows的一种内部数据结构,它是由CWnd的Create成员函数创建的,而由CWnd的虚拟析构函数销毁。DestoryWidnows函数销毁Windows的窗口,但是不销毁对象。
    具体请参况MSDN
      

  4.   

    CWnd--------------------------------------------\
            |                       |               |
            |-->CFrameWnd(主框架)    |              |
            |                       |               |->CView(视图区)
            |                       |-->CDialog(对话框)
            |
            |->CControlBar(控制条)
    CWnd 具有基本Windows对象的属性