[SOLVED]CWebBrowser2 not getting displayed on a dialog in a dll. [modified]
-
Hi, iam trying to display a browser control of type CWebBrowser2 in a dialog, which will be initiated from a dll. now, the problem is, the dialog is getting displayed properly, when i dont insert the webbrowser control. but when i draw the webbrowser control on the dialog, it is not showing up. i even tried to create it dynamically, but Create method is returning by closing the application. any ideas? thanks in advance.
modified on Friday, June 17, 2011 5:19 PM
-
Hi, iam trying to display a browser control of type CWebBrowser2 in a dialog, which will be initiated from a dll. now, the problem is, the dialog is getting displayed properly, when i dont insert the webbrowser control. but when i draw the webbrowser control on the dialog, it is not showing up. i even tried to create it dynamically, but Create method is returning by closing the application. any ideas? thanks in advance.
modified on Friday, June 17, 2011 5:19 PM
further investigations on this issue, concluded that, the window itself was not getting properly created for the web browser control. any ideas?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
further investigations on this issue, concluded that, the window itself was not getting properly created for the web browser control. any ideas?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
chandu004 wrote:
the window itself was not getting properly created for the web browser control.
Derive your Dialog from
CDialog
instead ofCHtmlDialog
, while adding the Dialog through MFC Wizard and add a web browser control to it. Use theNavigate()
method to browse to a URL. -
further investigations on this issue, concluded that, the window itself was not getting properly created for the web browser control. any ideas?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.