Originally posted by: HungNC
Hi, everybody.
I have to get pure text from IE4 Window (or browser control)
or HtmlHelp window...!
I don' t want to directly read Html files as text, since they have a lot of Html tags.
Anybody have any suggestion please let me know !
Thank you a lot.
ReplyOriginally posted by: J�rgen Voss
I'd really love to know if there is something such as a "pipe::" URL prefix (similar to the "file://"; prefix but runs a program and reads it's stdout instead of simply loading the file itself). Can any of you gurus enlighten me?
Many thanks in advance,
Juergen
Originally posted by: Oscar
Is ther any way to disable the print option on the browser's
menu bar using Applet or HTMl code?
Thanks.
ReplyOriginally posted by: Bernhard Dreyer
For example the URL "about:This is the text to display"
This is the text to display
in the browser window. You can add HTML tags to the
Quite easy ?!
I just found out by playing around with the URL and was eagerly looking for a way to display HTML text in the BrowserCtrl.
Happy coding (HTMLing :) )
Barnie
If you want to display HTML without a HTML file,
use the URL "about:" and some HTML text.
causes the output
URL (string) and format your text.
Originally posted by: Philippe Anselme-vatin
I am new in MFC and I use Webbrowser to display html pages. However, I must create a HTML file before and load it after (with Navigate(...) method)
But I would like to know if it is possible to put HTML code in a CString (for exemple) and to display it in a webbrowser without creating an HTML file.
thanks
ReplyOriginally posted by: Jos� Calv�rio
I there.
I am using the WebBrowser control in my application, in VC++6.0. It works fine when i run it in WindowsNT and Windows98, but when i run the application in Windows95 it just doesn't do nothing. The application ends before appearing in the screen. I know that the problem is the WebBrowser control because if i remove it from the application then it works fine.
Can anyone tell me what i have to do to make it work on Windows95 ?
Tanks.
Originally posted by: Bikta
Can I print Web pages in C++ - MFC project usong IE controls without
navigating to this page?
(as IE do it when click right mouse button on any link and choose "Print
Desination")?
I must it for printing list of pages without navigating to them.
Thanks for help,-
Eliahu.
Originally posted by: Howard
First of all thank you Daniel for your contribution. I do have a couple of questions however.
Before consulting CodeGuru I had some success implementing the Web control myself. However in my approach , I simply used VC 5.0 to add the Web control to my project. I created a member in my CView of type CWebBrowser (m_browser). I then took a look at the webbrowser.h file that was generated and proceeded to call the methods directly (eg m_browser.Create(...). Is there something wrong with this approach? It seemed to work OK.
Also, why was AFX_IDW_PANE_FIRST used as the Control ID. I used a value that I defined myself.
Thanks again,
Howard
Reply
Originally posted by: Rudie Crous
When using the WebBrowser control in a CView-derived class, the TAB key will not work to move between form fields.
The reason for this is explained at the Microsoft web site:
http://support.microsoft.com/support/kb/articles/q165/0/74.asp?PR=CHS&T1=7d&
CAUSE
This functionality in CView and CWnd classes is by design. The CView and Wnd classes do not carry the additional overhead necessary to forward these keyboard messages to children for processing. It is necessary to add this functionality to your derived class by using PreTranslateMessage.
RESOLUTION
Override PreTranslateMessage for the parent of the Web Browser Control as follows:
BOOL CMyView::PreTranslateMessage(MSG* pMsg)
{
if(IsDialogMessage(pMsg))
return TRUE;
else
return CWnd::PreTranslateMessage(pMsg);
}
Reply
Originally posted by: shellreef
I have Visual C++ 4.0 and need to use this control. How would I do that?
Reply