点击一个图标后实现了窗口的切分,可是切分后的窗口没有被初始化,我也重载了OnInitialUpdate()函数,可是根本就没有被执行!请大侠指教!
代码见:http://www.vchelp.net/cndevforum/subject_view.asp?subject_id=33080&forum_id=34

解决方案 »

  1.   

    A CSplitterWnd object is usually embedded in a parent CFrameWnd or CMDIChildWnd object. Create a CSplitterWnd object using the following steps: Embed a CSplitterWnd member variable in the parent frame. 
    Override the parent frame's CFrameWnd::OnCreateClient member function. 
    From within the overridden OnCreateClient, call the Create or CreateStatic member function of CSplitterWnd. 
      

  2.   

    这个问题我已经解决了,只要在OnShowView()中加入如下代码即可
    CWnd* pWnd = wndSplitter1.GetPane(1, 0);
    CRightBottomView* pView = DYNAMIC_DOWNCAST(CRightBottomView, pWnd);
    pView->OnInitialUpdate();再次感谢不说兄!!!
    回答我的问题的三位兄弟也给分!