Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 14 Jun 2008 15:43:40 -0600,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Getting hWnd of a frame   
Hello,

I've used the IOleWindow:GetWindow method to obtain the hwnd of a particular 
document.  It works well, except when trying to query for the hWnd of a 
document inside a frame.  The hwnd is always the document of the root 
webbrowser, even in a multi-frame environment with multiple webbrowser 
instances.  Is there any way to obtain the hWnd of the document inside the 
frame/webbrowser?

What we're trying to do is match up an HTTP Response received from an 
IHttpNegotiate:OnResponse to a given frame in the webbrowser.  If there is a 
better way to do it, I'm certainly open to better ways.

Thanks!
date: Sat, 14 Jun 2008 15:43:40 -0600   author:   Daniel McCann

Re: Getting hWnd of a frame   
"Daniel McCann"  wrote in message
news:ett9qemzIHA.2408@TK2MSFTNGP04.phx.gbl
> I've used the IOleWindow:GetWindow method to obtain the hwnd of a
> particular document.  It works well, except when trying to query for
> the hWnd of a document inside a frame.

It doesn't have one. Beginning with IE5, frames are windowless.
-- 
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
date: Sat, 14 Jun 2008 19:58:53 -0400   author:   Igor Tandetnik

Re: Getting hWnd of a frame   
So is there any way of associating the IHttpNegotiate:OnResponse method with 
a particular frame in a browser?

"Igor Tandetnik"  wrote in message 
news:er%23fdqnzIHA.2384@TK2MSFTNGP02.phx.gbl...
> "Daniel McCann"  wrote in message
> news:ett9qemzIHA.2408@TK2MSFTNGP04.phx.gbl
>> I've used the IOleWindow:GetWindow method to obtain the hwnd of a
>> particular document.  It works well, except when trying to query for
>> the hWnd of a document inside a frame.
>
> It doesn't have one. Beginning with IE5, frames are windowless.
> -- 
> 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
>
date: Sat, 14 Jun 2008 18:33:43 -0600   author:   Daniel McCann

Re: Getting hWnd of a frame   
"Daniel McCann"  wrote in message
news:OKW5b9nzIHA.4004@TK2MSFTNGP03.phx.gbl
> So is there any way of associating the IHttpNegotiate:OnResponse
> method with a particular frame in a browser?

I can't think of any.
-- 
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
date: Sat, 14 Jun 2008 20:42:04 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us