af91a9ff3def2e2b5c50b8d7c2dbe6dd30a26849
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / CustomControl / src / MyWebControl.cpp
1 #include "stdafx.h"\r
2 #include "MyWebControl.h"\r
3 \r
4 CWebControl::CWebControl()\r
5 {\r
6         // The entry for the dialog's control in resource.rc must match this name.\r
7         CString ClassName = _T("WebControl");\r
8 \r
9         // Register the window class\r
10         WNDCLASS wc = {0};\r
11 \r
12         if (!::GetClassInfo(GetApp()->GetInstanceHandle(), ClassName, &wc))\r
13         {\r
14                 wc.lpszClassName = ClassName;\r
15                 wc.lpfnWndProc = ::DefWindowProc;\r
16                 wc.hInstance = GetApp()->GetInstanceHandle();\r
17                 ::RegisterClass(&wc);\r
18         }\r
19 \r
20         assert (::GetClassInfo(GetApp()->GetInstanceHandle(), ClassName, &wc));\r
21 }\r
22 \r
23 void CWebControl::OnInitialUpdate()\r
24 {\r
25         // Go to the browser's home page\r
26         GoHome();\r
27 }\r
28 \r
29 \r
30 \r

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