|
-
March 31st, 1999, 09:58 PM
#1
How can i maximized first default view, at MDI Mode.
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.... 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|