0028225: MFC sample on OCAF uses old-style definition of a Handle-class
[occt.git] / samples / mfc / standard / 06_Ocaf / src / OcafApp.h
CommitLineData
7fd59977 1// OcafApp.h : main header file for the OCAF application
2//
3
4#if !defined(AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_)
5#define AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_
6
7#if _MSC_VER >= 1000
8#pragma once
9#endif // _MSC_VER >= 1000
10
5c1f974e 11#include <OCC_App.h>
7fd59977 12#include "OcafDoc.h"
9e3ca93a 13#include <TOcaf_Application.hxx>
7fd59977 14
15
5c1f974e 16class COcafApp : public OCC_App
7fd59977 17{
7fd59977 18public:
5c1f974e 19
20 COcafApp();
7fd59977 21
22// Overrides
5c1f974e 23 // ClassWizard generated virtual function overrides
24 //{{AFX_VIRTUAL(COcafApp)
25 public:
26 virtual BOOL InitInstance();
27 //}}AFX_VIRTUAL
28 void OnFileOpen();
7fd59977 29public:
9e3ca93a 30 Handle(TOcaf_Application) GetApp() {return myApp;}
7fd59977 31
32private :
5c1f974e 33 BOOL IsViewExisting(CDocument* pDoc,CRuntimeClass* pViewClass,CView*& pView);
34
35private:
7fd59977 36
9e3ca93a 37 Handle(TOcaf_Application) myApp;
5c1f974e 38 CMultiDocTemplate* pDocTemplateForView3d;
7fd59977 39
5c1f974e 40 DECLARE_MESSAGE_MAP()
7fd59977 41};
42
43/////////////////////////////////////////////////////////////////////////////
44
45#endif // !defined(AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_)