Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Explorer / src / ExplorerApp.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/samples/Explorer/src/ExplorerApp.h b/research/transmission_spectroscopy/TOF/Win32++/samples/Explorer/src/ExplorerApp.h
new file mode 100644 (file)
index 0000000..b910fd0
--- /dev/null
@@ -0,0 +1,29 @@
+//////////////////////////////////////////////////\r
+// ExplorerApp.h\r
+//  Declaration of the CExplorerApp class\r
+\r
+#ifndef EXPLORERAPP_H\r
+#define EXPLORERAPP_H\r
+\r
+\r
+#include "Mainfrm.h"\r
+\r
+\r
+class CExplorerApp : public CWinApp\r
+{\r
+public:\r
+       CExplorerApp();\r
+       virtual ~CExplorerApp();\r
+       virtual BOOL InitInstance();\r
+       CMainFrame& GetMainFrame() { return m_Frame; }\r
+\r
+private:\r
+       CMainFrame m_Frame;\r
+};\r
+\r
+// returns a reference to the CExplorerApp object\r
+inline CExplorerApp& GetExplorerApp() { return *((CExplorerApp*)GetApp()); }\r
+\r
+\r
+#endif  //EXPLORERAPP_H\r
+\r

UCC git Repository :: git.ucc.asn.au