Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / FastGDI / src / FastGDIApp.cpp
diff --git a/research/transmission_spectroscopy/TOF/Win32++/samples/FastGDI/src/FastGDIApp.cpp b/research/transmission_spectroscopy/TOF/Win32++/samples/FastGDI/src/FastGDIApp.cpp
new file mode 100644 (file)
index 0000000..335d9e3
--- /dev/null
@@ -0,0 +1,31 @@
+//////////////////////////////////////////////\r
+// FastGDIApp.cpp\r
+\r
+#include "stdafx.h"\r
+#include "FastGDIApp.h"\r
+\r
+\r
+// Definitions for the CFastGDIApp class\r
+CFastGDIApp::CFastGDIApp()\r
+{\r
+}\r
+\r
+CFastGDIApp::~CFastGDIApp()\r
+{\r
+}\r
+\r
+BOOL CFastGDIApp::InitInstance()\r
+{\r
+       //Create the Frame Window\r
+       if (!m_Frame.Create())  \r
+       {\r
+               // We get here if the Frame creation fails\r
+               \r
+               ::MessageBox(NULL, _T("Failed to create Frame window"), _T("ERROR"), MB_ICONERROR);\r
+               return FALSE; // returning FALSE ends the application\r
+       }\r
+\r
+       return TRUE;\r
+}\r
+\r
+\r

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