Click OK again to add a CWebBrowser2 class to your project. Enter a name for the control variable. You now have an application containing a Web browser. Display the WebBrowser control. This section provides code for additional features you can add to your WebBrowser control.
Most Web applications enable the user to browse to any location by typing a URL in a text box.
To add browsing capability to your application you must provide a text box for entering and retrieving data, such as an edit control. To add an edit control, open your application in the Dialog Editor and choose Edit Control from the Controls toolbar. This creates the control, but to access and use the control you must add a member variable. See Steps 5 and 6 in the previous list for information about how to do this. The following example uses an edit control to retrieve a location and pass that location to the WebBrowser control.