Re: Is there an API for Tabs?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 26 Nov 2007 07:56:06 -0500
"Günter Prossliner" <g.prossliner/gmx/at> wrote in message
news:%23W8ZVvBMIHA.5468@xxxxxxxxxxxxxxxxxxxx
1. enumerate the currently opened Tabs of a specific IE - Instance
and get the Location of the loaded Document(s).
Use ShellWindows object to enumerate all WebBrowser instances in the
system - this will give you all tabs in all IE instances, as well as
WebBrowser instances hosted by applications other than IE. For each
instance, get its HWND handle with IWebBrowser2::get_HWND, and follow
parent chain to the top-level handle. Only keep those that can be traced
this way to a particular IE main window.
2. programmaticly open a new Tabs and open a Document by it's URL.
Once you have IWebBrowser pointer for one tab, call Navigate on it with
navOpenInNewTab flag.
I want to write a small BOH (or whatever else is able to do this)
which allows me to save the collection of the opened Tabs (primary
the URL) into a file, and which allows the user to open this file
later, which shall restore all Tabs that are saved within the file.
IE7's Favorites already support this. You can save a set of tabs as a
folder in Favorites (the UI refers to it as a "tab group"), and open a
folderful of bookmarks at once as a set of tabs.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: Is there an API for Tabs?
- From: Günter Prossliner
- Re: Is there an API for Tabs?
- References:
- Is there an API for Tabs?
- From: Günter Prossliner
- Is there an API for Tabs?
- Prev by Date: Is there an API for Tabs?
- Next by Date: Re: Is there an API for Tabs?
- Previous by thread: Is there an API for Tabs?
- Next by thread: Re: Is there an API for Tabs?
- Index(es):
Relevant Pages
|