Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / WCE samples / Scribble / FrameApp.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/WCE samples/Scribble/FrameApp.h b/research/transmission_spectroscopy/TOF/Win32++/WCE samples/Scribble/FrameApp.h
new file mode 100644 (file)
index 0000000..d49ddbe
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef SIMPLEAPP_H\r
+#define SIMPLEAPP_H\r
+\r
+#include "wincore.h"\r
+#include "MainFrm.h"\r
+\r
+\r
+class CWceFrameApp : public CWinApp\r
+{\r
+public:\r
+    CWceFrameApp();\r
+    virtual ~CWceFrameApp() {}\r
+       virtual BOOL InitInstance();\r
+       CMainFrame& GetMainFrame() { return m_Frame; }\r
+\r
+private:\r
+    CMainFrame m_Frame;\r
+};\r
+\r
+\r
+// returns a reference to the CWceFrameApp object\r
+inline CWceFrameApp& GetFrameApp() { return *((CWceFrameApp*)GetApp()); }\r
+\r
+\r
+#endif //SIMPLEAPP_H\r
+\r

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