mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0023776: Redesign of MFC samples after V2d viewer removing
This commit is contained in:
@@ -35,12 +35,12 @@ OCC_BaseChildFrame::~OCC_BaseChildFrame()
|
||||
#ifdef _DEBUG
|
||||
void OCC_BaseChildFrame::AssertValid() const
|
||||
{
|
||||
CMDIChildWnd::AssertValid();
|
||||
CMDIChildWnd::AssertValid();
|
||||
}
|
||||
|
||||
void OCC_BaseChildFrame::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CMDIChildWnd::Dump(dc);
|
||||
CMDIChildWnd::Dump(dc);
|
||||
}
|
||||
|
||||
#endif //_DEBUG
|
||||
@@ -50,29 +50,29 @@ void OCC_BaseChildFrame::Dump(CDumpContext& dc) const
|
||||
|
||||
void OCC_BaseChildFrame::ActivateFrame(int nCmdShow)
|
||||
{
|
||||
POSITION pos=AfxGetApp()->GetFirstDocTemplatePosition();
|
||||
CDocTemplate* DocT=AfxGetApp()->GetNextDocTemplate(pos);
|
||||
POSITION pos=AfxGetApp()->GetFirstDocTemplatePosition();
|
||||
CDocTemplate* DocT=AfxGetApp()->GetNextDocTemplate(pos);
|
||||
|
||||
POSITION FirstDocPosition =DocT->GetFirstDocPosition();
|
||||
POSITION p = FirstDocPosition;
|
||||
POSITION FirstDocPosition =DocT->GetFirstDocPosition();
|
||||
POSITION p = FirstDocPosition;
|
||||
|
||||
CDocument* doc;
|
||||
doc = NULL;
|
||||
CDocument* doc;
|
||||
doc = NULL;
|
||||
|
||||
if(FirstDocPosition!=NULL)
|
||||
{
|
||||
doc = DocT->GetNextDoc(p);
|
||||
if(AfxIsValidAddress(doc, sizeof(CDocument)) && p == NULL)
|
||||
{
|
||||
ASSERT_VALID(doc);
|
||||
POSITION position = doc->GetFirstViewPosition();
|
||||
if(position != NULL)
|
||||
doc ->GetNextView(position);
|
||||
if (position == NULL)
|
||||
nCmdShow = SW_SHOWMAXIMIZED;
|
||||
}
|
||||
}
|
||||
if(FirstDocPosition!=NULL)
|
||||
{
|
||||
doc = DocT->GetNextDoc(p);
|
||||
if(AfxIsValidAddress(doc, sizeof(CDocument)) && p == NULL)
|
||||
{
|
||||
ASSERT_VALID(doc);
|
||||
POSITION position = doc->GetFirstViewPosition();
|
||||
if(position != NULL)
|
||||
doc ->GetNextView(position);
|
||||
if (position == NULL)
|
||||
nCmdShow = SW_SHOWMAXIMIZED;
|
||||
}
|
||||
}
|
||||
|
||||
CMDIChildWnd::ActivateFrame(nCmdShow);
|
||||
CMDIChildWnd::ActivateFrame(nCmdShow);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user