Jose's Read Only Forum 2023

Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Source Code => Web Development => WebBrowser Control and MSHTML => Topic started by: José Roca on September 24, 2008, 08:17:44 PM

Title: Tabbed MDI WebBrowser
Post by: José Roca on September 24, 2008, 08:17:44 PM
 
This example implements a tabbed MDI WebBrowser. When you click a link in a web page that will open in a new window, the event is captured and the application creates a new tab and a new instance of the WebBrowser control, and the web page is displayed in it instead of opening a new instance of Internet Explorer.

You can also create new tabs by clicking the new tab toolbar icon or the new tab menu option, and being a MDI application, it allows cascading, vertical and horizontal tiling, and minimize.
Title: Tabbed MDI WebBrowser v. 1.01
Post by: José Roca on September 26, 2008, 12:19:00 AM
 
Added Refresh, Stop, Zoom In, Zoom Out, and popup blocker.

The popup blocker doesn't stop all kinds of popups, but it does a good job.

The zoom option simply changes the size of the font, as it does in Internet Explorer, so you won't see changes in web pages that use a fixed font size, such my web site or the PowerBASIC site and forum, but you will notice it in my forum.
Title: Re: Tabbed MDI WebBrowser
Post by: José Roca on December 05, 2008, 02:48:17 PM
 
The following version uses my OLE Container (OLECON.INC), instead of ATL.
Title: Re: Tabbed MDI WebBrowser
Post by: Theo Gottwald on September 05, 2012, 08:56:56 PM
I have recompiled the project and have two problems:

1. It doesn't show any web-site.
2. The Controls are not drawn properly (winXP) see attached Picture.
Title: Re: Tabbed MDI WebBrowser
Post by: José Roca on September 05, 2012, 11:07:55 PM
If you're going to compile legacy code with new headers, then specify the version you want to use. Add %WINVER = &H0501 before the #INCLUDEs. The size of the REBARBANDINFO structure is not the same for XP that for Vista/Windows 7.

Title: Re: Tabbed MDI WebBrowser
Post by: Theo Gottwald on September 06, 2012, 07:20:29 AM
I tried it, now it works!
Title: Re: Tabbed MDI WebBrowser
Post by: Randall Glass on September 07, 2012, 01:02:54 AM
I got Freeware Finder Desktop App completed.

Here is a picture of what it looks like.
Title: What dll does the OLE Container Tabbed MDI WebBrowser use?
Post by: Randall Glass on September 20, 2012, 12:50:05 AM
I have read that windows in european countries don't necessary have internet explorer on them.

Do I need to get a runtime dll from microsoft to get the OLE Container Tabbed MDI WebBrowser to work on all windows computers.

What runtime dll would it be ?
Title: Re: Tabbed MDI WebBrowser
Post by: José Roca on September 20, 2012, 12:16:38 PM
You don't need anything. Even if Internet Explorer is not installed, the WebBrowser control is. Internet Explorer uses the WebBrowser control, but the WebBroser control does not use Internet Explorer.