Call CreateView to create a view within a frame.
CWnd* CreateView( CCreateContext* pContext, UINT nID = AFX_IDW_PANE_FIRST );
- Specifies the type of view and document.
- The ID number of a view.
Pointer to a CWnd object if successful; otherwise NULL.
Use this member function to create "views" that are not CView-derived within a frame. After calling CreateView, you must manually set the view to active and set it to be visible; these tasks are not automatically performed by CreateView.
Note The MFC Advanced Concepts sample COLLECT uses CreateView to get correct 3D effects in Windows 95/98.