每个切分的视从CFormView继承就可以了

解决方案 »

  1.   

    要不要代码,大概可以用的,不过不要泄密呃!
    给出email;
      

  2.   

    我用过啊,冒问题啊,肯定是你的CSplitterWnd没有用对
      

  3.   

    直接从splitterwnd 中间OnCreateClient(),就可以了,当然还需要自己先创建好CFormView的类。
    wndSplitter.CreateView(0, 1, pContext->m_pNewViewClass, CSize(0,0), pContext)) 
      

  4.   

    BOOL CYourFormView::SetForm(LPCTSTR lpszTemplateName)
    {
    //先删除
    CWnd* pParent = GetParent();
    DWORD dwStyle = GetStyle();
    UINT nIDView = GetDlgCtrlID();
    CRect rc;
    GetWindowRect(&rc);
    pParent->ScreenToClient(&rc);HWND hwnd = UnsubclassWindow();
    ::DestroyWindow(hwnd);//再创建
    Create(lpszTemplateName, NULL, dwStyle, rc, pParent, nIDView, NULL);
    return TRUE;
    }