Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Threads / src / ThreadApp.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/samples/Threads/src/ThreadApp.h b/research/transmission_spectroscopy/TOF/Win32++/samples/Threads/src/ThreadApp.h
new file mode 100644 (file)
index 0000000..72532ed
--- /dev/null
@@ -0,0 +1,28 @@
+//////////////////////////////////////////////////\r
+// ThreadApp.h\r
+//  Declaration of the CThreadApp class\r
+\r
+#ifndef THREADAPP_H\r
+#define THREADAPP_H\r
+\r
+#include "MainWnd.h"\r
+\r
+class CThreadApp : public CWinApp\r
+{\r
+public:\r
+       CThreadApp();\r
+       virtual ~CThreadApp();\r
+       virtual BOOL InitInstance();\r
+       CMainWindow& GetMainWnd() {return m_MainWnd;}\r
+\r
+private:\r
+       CMainWindow m_MainWnd;  \r
+};\r
+\r
+\r
+// returns a reference to the CThreadApp object\r
+inline CThreadApp& GetThreadApp() { return *((CThreadApp*)GetApp()); }\r
+\r
+\r
+#endif  //THREADAPP_H\r
+\r

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