Hi,
I use MDI App. I input data by a dialog of mainframe, then, open a new file to show the graph. It does work. However, when
I changed the input data, it still showed the previous graph, even I closed the view and reopened it. What's wrong?

Please give me some tips.
Thanks.

zhiwen
Following is the excerpt:

BOOL CMainFrame::inputParameters()
{
// input data dialog
...
}

void CMainFrame::ShowGraph()
{
AfxGetMainWnd()->PostMessage(WM_COMMAND,ID_FILE_NEW);
}

void CVpsView::OnDraw(CDC* pDC)
{
CVpsDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// get data from member of mainFrame
CMainFrame* pf = (CMainFrame*)AfxGetMainWnd();
CPoint pCP = pf->m_drawingData();

// Draw the curve

}