Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Tray / src / TrayApp.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/samples/Tray/src/TrayApp.h b/research/transmission_spectroscopy/TOF/Win32++/samples/Tray/src/TrayApp.h
new file mode 100644 (file)
index 0000000..0c27e43
--- /dev/null
@@ -0,0 +1,28 @@
+/////////////////////////////////////////\r
+// TrayApp.h\r
+\r
+#ifndef TRAYAPP_H\r
+#define TRAYAPP_H\r
+\r
+#include "View.h"\r
+\r
+\r
+// Declaration of the CWinApp class\r
+class CTrayApp : public CWinApp\r
+{\r
+public:\r
+    CTrayApp();\r
+    virtual ~CTrayApp() {}\r
+       virtual BOOL InitInstance();\r
+       CView& GetView() { return m_View; }\r
+\r
+private:\r
+    CView m_View;\r
+};\r
+\r
+\r
+// returns a reference to the CTrayApp object\r
+inline CTrayApp& GetSimpleApp() { return *((CTrayApp*)GetApp()); }\r
+\r
+\r
+#endif // TRAYAPP_H\r

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