Tuesday, October 30, 2007

CHtmlView and WebBrowser ActiveX control VC++

CHtmlView Provides the functionality of the WebBrowser control within the context of MFC's document/view architecture.
this means that we can get all properties of IWebBrowser2 ActiveX control. For dialog based application only we have to Add AxtiveX control.
Derive a class from CHtmlView ,and add Navigate2(_T("http://www.msdn.microsoft.com/visualc/"),NULL,NULL); in the derived class .

Note:
The WebBrowser ActiveX control (and therefore CHtmlView) is available only to applications running under Windows versions in which Internet Explorer 4.0 or later has been installed.

No comments: