JD Charles
March 31st, 1999, 08:58 PM
Hi, everyone.
I appreciated your interest.
Now, the problem is just like this;
I created a project, in MDI mode with View inherited from CRecordView.
I implented those codes to maximize a first default view which is displayed
at running the project. I overrided OnActivateView like this:
void CTraceView::OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView)
{
// TODO: Add your specialized code here and/or call the base class
CRecordView::OnActivateView(bActivate, pActivateView, pDeactiveView);
pFrame= (CMDIFrameWnd*) AfxGetApp()->m_pMainWnd;
pChild= (CMDIChildWnd*) pFrame->GetActiveFrame();
pChild->MDIMaximize();
}
The problem is that: while i am running this EXE file, there is no error. but
after i terminate this runned EXE program, a error message dialog happens.
What's may be the bug. When I deleted (pChild->MDIMaxmize() ) , there was no
that problem.
please help me.... :)
I appreciated your interest.
Now, the problem is just like this;
I created a project, in MDI mode with View inherited from CRecordView.
I implented those codes to maximize a first default view which is displayed
at running the project. I overrided OnActivateView like this:
void CTraceView::OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView)
{
// TODO: Add your specialized code here and/or call the base class
CRecordView::OnActivateView(bActivate, pActivateView, pDeactiveView);
pFrame= (CMDIFrameWnd*) AfxGetApp()->m_pMainWnd;
pChild= (CMDIChildWnd*) pFrame->GetActiveFrame();
pChild->MDIMaximize();
}
The problem is that: while i am running this EXE file, there is no error. but
after i terminate this runned EXE program, a error message dialog happens.
What's may be the bug. When I deleted (pChild->MDIMaxmize() ) , there was no
that problem.
please help me.... :)