1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0023776: Redesign of MFC samples after V2d viewer removing

This commit is contained in:
aba
2013-03-12 09:19:35 +04:00
parent fad8962a72
commit 5c1f974e17
212 changed files with 9053 additions and 19513 deletions

View File

@@ -1,25 +1,23 @@
// ChildFrm2D.cpp : implementation of the CChildFrame2D class/
#include "stdafx.h"
#include "ChildFrm2d.h"
#include "GeometryApp.h"
IMPLEMENT_DYNCREATE(CChildFrame2D, CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildFrame2D, CMDIChildWnd)
//{{AFX_MSG_MAP(CChildFrame2D)
ON_WM_CREATE()
//}}AFX_MSG_MAP
//{{AFX_MSG_MAP(CChildFrame2D)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
@@ -28,8 +26,8 @@ static UINT indicators[] =
CChildFrame2D::CChildFrame2D()
{
// TODO: add member initialization code here
// TODO: add member initialization code here
}
CChildFrame2D::~CChildFrame2D()
@@ -42,12 +40,12 @@ CChildFrame2D::~CChildFrame2D()
#ifdef _DEBUG
void CChildFrame2D::AssertValid() const
{
CMDIChildWnd::AssertValid();
CMDIChildWnd::AssertValid();
}
void CChildFrame2D::Dump(CDumpContext& dc) const
{
CMDIChildWnd::Dump(dc);
CMDIChildWnd::Dump(dc);
}
#endif //_DEBUG
@@ -57,35 +55,35 @@ void CChildFrame2D::Dump(CDumpContext& dc) const
int CChildFrame2D::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.Create(this) ||
!m_wndToolBar.LoadToolBar(IDR_2dCHILDFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
// TODO: Remove this if you don't want tool tips or a resizeable toolbar
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
if (!m_wndToolBar.Create(this) ||
!m_wndToolBar.LoadToolBar(IDR_2dCHILDFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
// TODO: Remove this if you don't want tool tips or a resizeable toolbar
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
void CChildFrame2D::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base class
CMDIChildWnd::ActivateFrame(nCmdShow);
// TODO: Add your specialized code here and/or call the base class
CMDIChildWnd::ActivateFrame(nCmdShow);
}