BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)  
{
// TODO: Add your specialized code here and/or call the base class
if(!m_wndSplitter.CreateStatic(this,2,1,WS_CHILD|WS_VISIBLE|WS_VSCROLL))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
//Add Title View pane
if(!m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CTitleView),CSize(500,100),pContext))
{
TRACE0("Failed to create title view pane.\n");
return FALSE;
}
//Add curve pane
if(!m_wndSplitter.CreateView(1,0,pContext->m_pNewViewClass,CSize(500,200),pContext))
{
TRACE0("Failed to create curve view pane.\n");
return FALSE;
}
return TRUE;
//return CFrameWnd::OnCreateClient(lpcs, pContext);
}我用如上将窗口分割为两个视图类 CTitleView 和 CCurveView 
CCurveView 是创建单文档的时候派生于CScrollView类的 APPwizard生成的
CTitleView 是我后加的 也是派生于CScrollView
一个用来画曲线 一个用来画图头 读取数据我用用CFileDialog做一个打开对话框按钮,放在菜单栏上,相应OnOpen()消息响应函数放在 Curve类里 打开对话框就显示不出来 放在title里就可以 不懂为什么?求高人指点
如果我想把它放在curve类里怎么操作?
我想把数据存于CURVE类的成员变量里了 title类画图的时候怎么调用这些数据?QQ231391559