Are you asking how to display a new window with the new CFormView window?
Call something like the following from your CMainFrame class:
Code:
/* First get a handle to a newly created Document */
CMyDoc* pMyDoc = (CMyDoc*)pServerTemplate->CreateNewDocument();
/* Create the child frame for the Document */
CChildFrame* frame = (CChildFrame*)pServerTemplate->CreateNewFrame(pMyDoc,NULL);
/* Set the description of the window */
frame->SetWindowDescription("window");
/* Update the child frame, and make it visible */
pServerTemplate->InitialUpdateFrame(frame,pMyDoc,true);
/* Set the text for the child frame */
strcpy(frame->m_szWindowTitle,"New Window");