...
CSplitterWnd m_wndSplitter;
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CUpperView), CSize(150,0), pContext);
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CLowerView), CSize(0,0), pContext);
...如何获得上面两个视图的指针呢?谢谢!
CSplitterWnd m_wndSplitter;
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CUpperView), CSize(150,0), pContext);
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CLowerView), CSize(0,0), pContext);
...如何获得上面两个视图的指针呢?谢谢!
CView* pView;
POSITION pos = GetFirstViewPosition(); while(pos!=NULL)
{
pView = GetNextView(pos);
if(!pView->IsKindOf(pClass))
break;
} if(!pView->IsKindOf(pClass))
{
AfxMessageBox("Connt Locate the View");
return NULL;
}
CMyEditView *pEditView=(CMyEditView*)m_wndSplitter.GetPane(0,0);