mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023776: Redesign of MFC samples after V2d viewer removing
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CModelingApp construction
|
||||
|
||||
CModelingApp::CModelingApp()
|
||||
CModelingApp::CModelingApp() : OCC_App()
|
||||
{
|
||||
SampleName = "Modeling"; //for about dialog
|
||||
SampleName = "Modeling"; //for about dialog
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@@ -8,22 +8,25 @@
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <OCC_3dApp.h>
|
||||
#include <OCC_App.h>
|
||||
|
||||
class CModelingApp : public OCC_3dApp
|
||||
class CModelingApp : public OCC_App
|
||||
{
|
||||
public:
|
||||
CModelingApp();
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CModelingApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
private:
|
||||
CToolBar *m_pToolBar2;
|
||||
};
|
||||
|
||||
CModelingApp();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CModelingApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
private:
|
||||
|
||||
CToolBar *m_pToolBar2;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@@ -4936,7 +4936,7 @@ void CModelingDoc::InputEvent(const Standard_Integer x ,
|
||||
"Points Files (*.pass)|*.pass; |All Files (*.*)|*.*||",
|
||||
NULL );
|
||||
|
||||
CString initdir(((OCC_BaseApp*) AfxGetApp())->GetInitDataDir());
|
||||
CString initdir(((OCC_App*) AfxGetApp())->GetInitDataDir());
|
||||
initdir += "\\Data\\TangentSurface";
|
||||
|
||||
dlg.m_ofn.lpstrInitialDir = initdir;
|
||||
|
Reference in New Issue
Block a user