Click here to Skip to main content
15,920,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am converting an old project made with Visual C++ 6.0 to Visual Studio 2010 and everything is fine except one thing. In the application you can view help documents that are made in HTML so they are easy to edit and also you get all html features like click on names to open a link for that and so on. In the old 6.0 the html files were opened just like any other documents with the AfxGetApp()->OpenDocumentFile( path ); command, but this doesn't work for Visual Studio 2010. I don't want to just open internet explorer in it's own window, but instead the files should be opened inside my application as just another window here. In Visual 6.0 it opened a very simplified browser with just a few buttons for back,forward,home...

Maybe there isn't a good way to do this anymore?
Posted

1 solution

 
Share this answer
 
v2
Comments
Zamuel 31-Oct-13 9:00am    
Hmm ok. I tried to see if I could find something usefull but it seems like most stuff are more advanced than what I need. All I need is to open a html document and display it as normal, but in a window within my application (not open it in the standard web browser). Tried the navigate2() function but it crashed immediately by some reason.

I am using the Ultimate Toolbox in my application and it seems like there are functions here for html handling. Atleast there are CPP files like "OXWebView.cpp" and some others, but I can't find any information in either the documentation for ultimate toolbox or anythere on the internet on how to use the functions.
Zamuel 15-Nov-13 9:35am    
I got it to work so that I can have a dialog that shows the website. This is not really what I wanted. In my application I can open text documents into the view window (similar to the one in for example Visual Studio, with a tree structure on one side and different source windows to the right). I wanted the webviewer to open up just like any other documents here and not as it's own dialog. I can call the function that creates a new document window, but how could I add a browser to that?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900