Discussion:
Access the main window in an Explorer Bar
(too old to reply)
Shrage
2007-06-25 07:20:00 UTC
Permalink
Im trying to make a custom explorer bar which higlights certain areas in the
currently displayed window in IE. how do i access the main window frim within
the custom explorer bar? the custom explorer bar is an html page not a COM
object.?
Scherbina Vladimir
2007-07-03 10:03:26 UTC
Permalink
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas in the
currently displayed window in IE. how do i access the main window frim within
the custom explorer bar? the custom explorer bar is an html page not a COM
object.?
Shrage
2007-07-03 10:14:01 UTC
Permalink
I guess it means that you cannot accees the main window using html

Thanks a lot,

Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas in the
currently displayed window in IE. how do i access the main window frim within
the custom explorer bar? the custom explorer bar is an html page not a COM
object.?
Scherbina Vladimir
2007-07-03 10:26:26 UTC
Permalink
Actually, you can.

I just thought once again about your problem, and here is what I get. To
access the object model of html page you need the IWebBrowser2 interface.
The esiest (and I believe, most recommended) way to get is to write BHO
extension and track DocumentComplete events. Once you get DocumentComplete
event, you're sure that page is loaded, and you can edit its content just
after complete event. To change the html you should:

(typing from my mind, so here might be some mistakes in method names)

- obtain pointer to document interface (IWebBrowser2::get_Document())
- query IHTMLDocument2 interface from obtained document interface
- form the vector array (which represents the actual html you want to write)
- write the array to html document using IHTMLDocument2::write(..)

However, you can get pointer to IWebBrowser2 not only from BHO. You can
enumerate shell windows using ShellWindows object. This is not safe method,
because there is no syncronization, i.e. at the moment of writing the HTML
code the window can already be closed and you're not able to track this
event.
--
Vladimir, Windows SDK MVP
Post by Shrage
I guess it means that you cannot accees the main window using html
Thanks a lot,
Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas
in
the
currently displayed window in IE. how do i access the main window frim within
the custom explorer bar? the custom explorer bar is an html page not a COM
object.?
Shrage
2007-07-03 10:36:01 UTC
Permalink
Can you give me a link where BHO is explained for IE7 specificaly? i know
about this link: http://msdn2.microsoft.com/en-us/library/Bb250436.aspx but
this is not IE7 information.

Thanks Again.
Shrage
Post by Scherbina Vladimir
Actually, you can.
I just thought once again about your problem, and here is what I get. To
access the object model of html page you need the IWebBrowser2 interface.
The esiest (and I believe, most recommended) way to get is to write BHO
extension and track DocumentComplete events. Once you get DocumentComplete
event, you're sure that page is loaded, and you can edit its content just
(typing from my mind, so here might be some mistakes in method names)
- obtain pointer to document interface (IWebBrowser2::get_Document())
- query IHTMLDocument2 interface from obtained document interface
- form the vector array (which represents the actual html you want to write)
- write the array to html document using IHTMLDocument2::write(..)
However, you can get pointer to IWebBrowser2 not only from BHO. You can
enumerate shell windows using ShellWindows object. This is not safe method,
because there is no syncronization, i.e. at the moment of writing the HTML
code the window can already be closed and you're not able to track this
event.
--
Vladimir, Windows SDK MVP
Post by Shrage
I guess it means that you cannot accees the main window using html
Thanks a lot,
Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas
in
the
currently displayed window in IE. how do i access the main window frim within
the custom explorer bar? the custom explorer bar is an html page not a COM
object.?
Scherbina Vladimir
2007-07-03 10:39:56 UTC
Permalink
Your link is applied to IE7 aswell.
--
Vladimir, Windows SDK MVP
Post by Shrage
Can you give me a link where BHO is explained for IE7 specificaly? i know
about this link: http://msdn2.microsoft.com/en-us/library/Bb250436.aspx but
this is not IE7 information.
Thanks Again.
Shrage
Post by Scherbina Vladimir
Actually, you can.
I just thought once again about your problem, and here is what I get. To
access the object model of html page you need the IWebBrowser2 interface.
The esiest (and I believe, most recommended) way to get is to write BHO
extension and track DocumentComplete events. Once you get
DocumentComplete
event, you're sure that page is loaded, and you can edit its content just
(typing from my mind, so here might be some mistakes in method names)
- obtain pointer to document interface (IWebBrowser2::get_Document())
- query IHTMLDocument2 interface from obtained document interface
- form the vector array (which represents the actual html you want to write)
- write the array to html document using IHTMLDocument2::write(..)
However, you can get pointer to IWebBrowser2 not only from BHO. You can
enumerate shell windows using ShellWindows object. This is not safe method,
because there is no syncronization, i.e. at the moment of writing the HTML
code the window can already be closed and you're not able to track this
event.
--
Vladimir, Windows SDK MVP
Post by Shrage
I guess it means that you cannot accees the main window using html
Thanks a lot,
Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas
in
the
currently displayed window in IE. how do i access the main window
frim
within
the custom explorer bar? the custom explorer bar is an html page not
a
COM
object.?
Shrage
2007-07-03 13:24:05 UTC
Permalink
Thanks so much for your information, my last question, is this the right
forum to talk about IE customization? all other IE forums are just empty.
Post by Scherbina Vladimir
Your link is applied to IE7 aswell.
--
Vladimir, Windows SDK MVP
Post by Shrage
Can you give me a link where BHO is explained for IE7 specificaly? i know
about this link: http://msdn2.microsoft.com/en-us/library/Bb250436.aspx but
this is not IE7 information.
Thanks Again.
Shrage
Post by Scherbina Vladimir
Actually, you can.
I just thought once again about your problem, and here is what I get. To
access the object model of html page you need the IWebBrowser2 interface.
The esiest (and I believe, most recommended) way to get is to write BHO
extension and track DocumentComplete events. Once you get
DocumentComplete
event, you're sure that page is loaded, and you can edit its content just
(typing from my mind, so here might be some mistakes in method names)
- obtain pointer to document interface (IWebBrowser2::get_Document())
- query IHTMLDocument2 interface from obtained document interface
- form the vector array (which represents the actual html you want to write)
- write the array to html document using IHTMLDocument2::write(..)
However, you can get pointer to IWebBrowser2 not only from BHO. You can
enumerate shell windows using ShellWindows object. This is not safe method,
because there is no syncronization, i.e. at the moment of writing the HTML
code the window can already be closed and you're not able to track this
event.
--
Vladimir, Windows SDK MVP
Post by Shrage
I guess it means that you cannot accees the main window using html
Thanks a lot,
Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas
in
the
currently displayed window in IE. how do i access the main window
frim
within
the custom explorer bar? the custom explorer bar is an html page not
a
COM
object.?
Scherbina Vladimir
2007-07-03 13:54:31 UTC
Permalink
If I recall correctly, there is no NG that convers IE tuning. Major part of
the questions of such kind is asked at microsoft.public.platformsdk.com_ole
newsgroup.
--
Vladimir, Windows SDK MVP
Post by Shrage
Thanks so much for your information, my last question, is this the right
forum to talk about IE customization? all other IE forums are just empty.
Post by Scherbina Vladimir
Your link is applied to IE7 aswell.
--
Vladimir, Windows SDK MVP
Post by Shrage
Can you give me a link where BHO is explained for IE7 specificaly? i know
about this link: http://msdn2.microsoft.com/en-us/library/Bb250436.aspx but
this is not IE7 information.
Thanks Again.
Shrage
Post by Scherbina Vladimir
Actually, you can.
I just thought once again about your problem, and here is what I get. To
access the object model of html page you need the IWebBrowser2 interface.
The esiest (and I believe, most recommended) way to get is to write BHO
extension and track DocumentComplete events. Once you get
DocumentComplete
event, you're sure that page is loaded, and you can edit its content just
(typing from my mind, so here might be some mistakes in method names)
- obtain pointer to document interface (IWebBrowser2::get_Document())
- query IHTMLDocument2 interface from obtained document interface
- form the vector array (which represents the actual html you want to write)
- write the array to html document using IHTMLDocument2::write(..)
However, you can get pointer to IWebBrowser2 not only from BHO. You can
enumerate shell windows using ShellWindows object. This is not safe method,
because there is no syncronization, i.e. at the moment of writing the HTML
code the window can already be closed and you're not able to track this
event.
--
Vladimir, Windows SDK MVP
Post by Shrage
I guess it means that you cannot accees the main window using html
Thanks a lot,
Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas
in
the
currently displayed window in IE. how do i access the main window
frim
within
the custom explorer bar? the custom explorer bar is an html page not
a
COM
object.?
Shrage
2007-07-03 16:16:03 UTC
Permalink
That's sad,

Your information was very helpfull,
Thanks a lot
Post by Scherbina Vladimir
If I recall correctly, there is no NG that convers IE tuning. Major part of
the questions of such kind is asked at microsoft.public.platformsdk.com_ole
newsgroup.
--
Vladimir, Windows SDK MVP
Post by Shrage
Thanks so much for your information, my last question, is this the right
forum to talk about IE customization? all other IE forums are just empty.
Post by Scherbina Vladimir
Your link is applied to IE7 aswell.
--
Vladimir, Windows SDK MVP
Post by Shrage
Can you give me a link where BHO is explained for IE7 specificaly? i know
about this link: http://msdn2.microsoft.com/en-us/library/Bb250436.aspx but
this is not IE7 information.
Thanks Again.
Shrage
Post by Scherbina Vladimir
Actually, you can.
I just thought once again about your problem, and here is what I get. To
access the object model of html page you need the IWebBrowser2 interface.
The esiest (and I believe, most recommended) way to get is to write BHO
extension and track DocumentComplete events. Once you get DocumentComplete
event, you're sure that page is loaded, and you can edit its content just
(typing from my mind, so here might be some mistakes in method names)
- obtain pointer to document interface (IWebBrowser2::get_Document())
- query IHTMLDocument2 interface from obtained document interface
- form the vector array (which represents the actual html you want to write)
- write the array to html document using IHTMLDocument2::write(..)
However, you can get pointer to IWebBrowser2 not only from BHO. You can
enumerate shell windows using ShellWindows object. This is not safe method,
because there is no syncronization, i.e. at the moment of writing the HTML
code the window can already be closed and you're not able to track this
event.
--
Vladimir, Windows SDK MVP
Post by Shrage
I guess it means that you cannot accees the main window using html
Thanks a lot,
Shrage
Post by Scherbina Vladimir
You need to write BHO to access object model of page.
--
Vladimir, Windows SDK MVP
Post by Shrage
Im trying to make a custom explorer bar which higlights certain areas
in
the
currently displayed window in IE. how do i access the main window
frim
within
the custom explorer bar? the custom explorer bar is an html page not
a
COM
object.?
Loading...