Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / WCE samples / DlgSubclass / DlgSubclassApp.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/WCE samples/DlgSubclass/DlgSubclassApp.h b/research/transmission_spectroscopy/TOF/Win32++/WCE samples/DlgSubclass/DlgSubclassApp.h
new file mode 100644 (file)
index 0000000..cbe105b
--- /dev/null
@@ -0,0 +1,29 @@
+///////////////////////////////////////\r
+// DlgSubclassApp.h\r
+\r
+#ifndef DLGSUBCLASSAPP_H\r
+#define DLGSUBCLASSAPP_H\r
+\r
+#include "MyDialog.h"\r
+\r
+\r
+// Declaration of the CDialogApp class\r
+class CDlgSubclassApp : public CWinApp\r
+{\r
+public:\r
+       CDlgSubclassApp();\r
+       virtual ~CDlgSubclassApp();\r
+       virtual BOOL InitInstance();\r
+       CMyDialog& GetDialog() {return m_MyDialog;}\r
+\r
+private:\r
+       CMyDialog m_MyDialog;\r
+};\r
+\r
+\r
+// returns a reference to the CDlgSubclassApp object\r
+inline CDlgSubclassApp& GetSubApp() { return *((CDlgSubclassApp*)GetApp()); }\r
+\r
+\r
+#endif // define DLGSUBCLASSAPP_H\r
+\r

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