Environment: Microsoft Visual C++
Web Custom Control
Here is an easy to use web control which can be created using CreateWindow()
or as a CONTROL in a dialog template script.
InitWebCtrl();hwndWebCtrl = CreateWindow(
“WebCtrl32”,
“https://www.codeguru.com/”,
WS_CHILD | WS_VISIBLE,
0, 0, 200, 100,
hwndParent,
(HMENU) IDC_WEBCTRL,
hInstance,
NULL );
— or —
CONTROL “”, IDC_WEBCTRL, “WebCtrl32”,0x0,8,8,264,160case WM_INITDIALOG
SetDlgItemText( hdlg,
IDC_WEBCTRL,
“https://www.codeguru.com/” );
break;