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?
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.
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 ?
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
I must it for printing list of pages without navigating to them.
Thanks for help,-
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.
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.
Override PreTranslateMessage for the parent of the Web Browser Control as follows: