2 #include "MyWebControl.h"
\r
4 CWebControl::CWebControl()
\r
6 // The entry for the dialog's control in resource.rc must match this name.
\r
7 CString ClassName = _T("WebControl");
\r
9 // Register the window class
\r
12 if (!::GetClassInfo(GetApp()->GetInstanceHandle(), ClassName, &wc))
\r
14 wc.lpszClassName = ClassName;
\r
15 wc.lpfnWndProc = ::DefWindowProc;
\r
16 wc.hInstance = GetApp()->GetInstanceHandle();
\r
17 ::RegisterClass(&wc);
\r
20 assert (::GetClassInfo(GetApp()->GetInstanceHandle(), ClassName, &wc));
\r
23 void CWebControl::OnInitialUpdate()
\r
25 // Go to the browser's home page
\r