Web Custom Control

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”,
“http://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,160

case WM_INITDIALOG

SetDlgItemText( hdlg,
IDC_WEBCTRL,
“http://www.codeguru.com/” );
break;

Downloads

Download WebCtrl demo project source code – 138Kb

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read