Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / CustomControl / src / MyWebControl.cpp
diff --git a/research/transmission_spectroscopy/TOF/Win32++/samples/CustomControl/src/MyWebControl.cpp b/research/transmission_spectroscopy/TOF/Win32++/samples/CustomControl/src/MyWebControl.cpp
new file mode 100644 (file)
index 0000000..af91a9f
--- /dev/null
@@ -0,0 +1,30 @@
+#include "stdafx.h"\r
+#include "MyWebControl.h"\r
+\r
+CWebControl::CWebControl()\r
+{\r
+       // The entry for the dialog's control in resource.rc must match this name.\r
+       CString ClassName = _T("WebControl");\r
+\r
+       // Register the window class\r
+       WNDCLASS wc = {0};\r
+\r
+       if (!::GetClassInfo(GetApp()->GetInstanceHandle(), ClassName, &wc))\r
+       {\r
+               wc.lpszClassName = ClassName;\r
+               wc.lpfnWndProc = ::DefWindowProc;\r
+               wc.hInstance = GetApp()->GetInstanceHandle();\r
+               ::RegisterClass(&wc);\r
+       }\r
+\r
+       assert (::GetClassInfo(GetApp()->GetInstanceHandle(), ClassName, &wc));\r
+}\r
+\r
+void CWebControl::OnInitialUpdate()\r
+{\r
+       // Go to the browser's home page\r
+       GoHome();\r
+}\r
+\r
+\r
+\r

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