|
|
|
date: Sat, 01 Mar 2008 02:01:57 -0500,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
How to map the SELECT/Combobox in IE7
Hi,
I've recently been adapting a VB6 WebBrowser application to IE7. In
IE6 (using windows api calls), I was able to create data structures
that would maintain a current picture of each SELECT element and, with
help from Igor Tandetnik, the same for IE7 SELECT/listboxes (using
DHTML).
But, so far, I'm stuck with respect to the SELECT/Combobox. I'll be
working more on this, but if anyone has been there, I'd appreciate
your help.
With the windows API, in IE6, using sendmessage with
CB_GETDROPPEDSTATE & CB_GETCURSEL, and GetWindowRect, one is able to
deduce much information about the elements in the combobox, including
their positions, and which element the mouse is hovering over.
IE7 has added the IHTMLSelectElementEx interface, from which you can
determine the dropped state, but I've not yet found a direct DHTML way
to determine other necessary information. The combobox in IE7 does,
however, have a different window handle and style, and I'm hoping that
with some combination of DHTML and windows calls, I can accomplish
this.
Any help appreciated!
Thanks, Steve
date: Sat, 01 Mar 2008 02:01:57 -0500
author: Steve
Re: How to map the SELECT/Combobox in IE7
In response to my own question, it turns out that IE7 supports both
windowless _and_ windowed Select controls. So, for now at least, those
who used windows calls to determine information about the select
elements -- more to the point, the select/Combobox -- there is a
solution.
The following links provide more info.:
http://support.microsoft.com/kb/927377
http://www.jsifaq.com/SF/Tips/Tip.aspx?id=10997
On Sat, 01 Mar 2008 02:01:57 -0500, Steve <> wrote:
>Hi,
>
>I've recently been adapting a VB6 WebBrowser application to IE7. In
>IE6 (using windows api calls), I was able to create data structures
>that would maintain a current picture of each SELECT element and, with
>help from Igor Tandetnik, the same for IE7 SELECT/listboxes (using
>DHTML).
>
>But, so far, I'm stuck with respect to the SELECT/Combobox. I'll be
>working more on this, but if anyone has been there, I'd appreciate
>your help.
>
>With the windows API, in IE6, using sendmessage with
>CB_GETDROPPEDSTATE & CB_GETCURSEL, and GetWindowRect, one is able to
>deduce much information about the elements in the combobox, including
>their positions, and which element the mouse is hovering over.
>
>IE7 has added the IHTMLSelectElementEx interface, from which you can
>determine the dropped state, but I've not yet found a direct DHTML way
>to determine other necessary information. The combobox in IE7 does,
>however, have a different window handle and style, and I'm hoping that
>with some combination of DHTML and windows calls, I can accomplish
>this.
>
>Any help appreciated!
>
>Thanks, Steve
date: Sat, 08 Mar 2008 19:51:51 -0500
author: Steve
|
|