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

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