--- /dev/null
+#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