Scroll webbrowser scrollbars via code

M

MEO

I have a form with a webbrowser control and am trying to send the
control's handle a
Microsoft.WindowsCE.Forms.MessageWindow.PostMessage with the relevant
scroll parameters to move the scrollbar. I managed to get this to
work fine with a multiline textbox but am having difficulties with the
webbrowser control.

I understand that I need to get a grandchild window (PIEHTML) of the
webbrowser control and post the message to that.

From examples I have found, I expected CE Remote Spy to show the
following:
<No Name> #NETCF_AGL_CONTAINER
<No Name> (IExplore)
<No Name> (MPSIE Status)
<No Name> (PIEHTML)

However it shows:
<No Name> #NETCF_AGL_CONTAINER
<No Name> (Shell Embedding)
<No Name> (Shell DocObjectView)
<No Name> (ATL:01EAA318)
<No Name> (WebView)

I am developing on a straight CE5 image (not PocketPC or Windows
Mobile) so does this use a different version of the webbrowser?

If anyone can shed any light I would be grateful.

Thanks.
 
M

MEO

Managed to solve this.

Of course I needed the great, great grandchild's handle of the
webbrowser control (not the grandchild) which gives <No Name>
(WebView).

Seems that the webbrowser control may be different on different
platforms as when debugging the same app on a PocketPC I only needed
to get the handle of the WebBrowser itself. All the examples on
Windows Mobile used the 2nd grandchild's handle.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top