请问高手,我在单文档窗体中将视图分割成功后,我现在要在菜单拦中添加一个象“工具栏”一样的菜单项,使它点击后根据当前视图中是否被分割,来进行切换显示还是不显示分割窗?我的分割窗体的程序如下:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
// TODO: Add your specialized code here and/or call the base class
VERIFY(m_wndSplitter.CreateStatic(this, 1, 2));
VERIFY(m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CCommandTreeView),
                                CSize(200, 200), pContext));
VERIFY(m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CLineMapView),
                                CSize(200, 200), pContext)); IsShowTreeView=TRUE;
return TRUE;
return CFrameWnd::OnCreateClient(lpcs, pContext);
}
  非常感谢