How to add webbrowser controle to visual c++ 6 MFC project
-
-
Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks
Examples exist on MSDN and likely here on CodeProject as well. Did you search at all? :sigh: http://www.codeproject.com/cpp/htmleditvc6.asp[^]
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
Examples exist on MSDN and likely here on CodeProject as well. Did you search at all? :sigh: http://www.codeproject.com/cpp/htmleditvc6.asp[^]
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
man i am using MFC with dialog and just want to display a webpage in part of a form. But that example never talkes bout url!! All i want to dispaly a site such www.cnn.com inside the form just like visual basic webbrowser controle.
-
Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks
Have you considered the WebBrowser Control (shdocvw.dll)?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
Have you considered the WebBrowser Control (shdocvw.dll)?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
man i am using MFC with dialog and just want to display a webpage in part of a form. But that example never talkes bout url!! All i want to dispaly a site such www.cnn.com inside the form just like visual basic webbrowser controle.
method007 wrote:
But that example never talkes bout url!!
Then do a freakin search and find one that does, there are hundereds of them including on the MSDN site! :~
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
I just want to load a URL inside my application just like visual basic 6 and i do not know how. I am looking for easy way . could u tell me how to use shdocvw.dll ?Thanks
method007 wrote:
could u tell me how to use shdocvw.dll ?
Project --> Add To Project --> Components and Controls.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
method007 wrote:
But that example never talkes bout url!!
Then do a freakin search and find one that does, there are hundereds of them including on the MSDN site! :~
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
method007 wrote:
could u tell me how to use shdocvw.dll ?
Project --> Add To Project --> Components and Controls.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
could u tell me what is the controle path for it ? furthermore , how to load the url using this method?
method007 wrote:
furthermore , how to load the url using this method?
Use either the
Navigate()
orNavigate2()
method.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks
Once you added the component ( as david wrote ), you can use the IHTMLDocument2 interface to access the HTML document, and directly
write
HTML code ( text ) to the document. if you want to navigate to an existing document ( on disk or from the web ) you need toNavigate
from the IWebBrowser2 interface. do a little explorating on CodeProject, you will find pretty much what you want.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
method007 wrote:
furthermore , how to load the url using this method?
Use either the
Navigate()
orNavigate2()
method.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
but how to know the path of controle and what should i do with navaigate? it seems like this is lunching a rocket to space processs!!!
method007 wrote:
but how to know the path of controle...
Most, but not all, reside in the \Windows\System32 folder. However, there's rarely a need to know such information. Once a control has been registered with the OS, its path is mostly irrelevant.
method007 wrote:
...what should i do with navaigate?
Pass it a URL.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
If u do not want to help some one do not try to flame. i am new to visual c++ world so if u do not want to help just do not reply!! very simple. do not think every one is in same level!!
method007 wrote:
do not think every one is in same level!!
Same level? Can't you read? The Sample/Example code you ask for is free for the "reading" on MSDN like I told you three times now. Telling you where you can find what you asked for is not a "flame". If you really want to be flamed just let me know.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
method007 wrote:
but how to know the path of controle...
Most, but not all, reside in the \Windows\System32 folder. However, there's rarely a need to know such information. Once a control has been registered with the OS, its path is mostly irrelevant.
method007 wrote:
...what should i do with navaigate?
Pass it a URL.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
david i still did not get my answers . What should i do here as u see in the pic and also how to specify the url that i want to load ? could tell me step by step as this is my first attemp to work this method.Thanks [IMG]http://i5.photobucket.com/albums/y180/method007/component.jpg\[/IMG\]
-
david i still did not get my answers . What should i do here as u see in the pic and also how to specify the url that i want to load ? could tell me step by step as this is my first attemp to work this method.Thanks [IMG]http://i5.photobucket.com/albums/y180/method007/component.jpg\[/IMG\]
method007 wrote:
What should i do here...
Double-click Registered ActiveX Controls. BTW, <IMG> tags are not supported.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb