Hi all,
could anybody help me how to scroll down from program the IWebBrowser2 control? It works, shows the pages, I can change the content, anything, but I have no idea how to scroll it down except with my mouse. :)
Thanks for reading this.
Posted on 2005-05-18 03:50:49 by lacika
Have you tried DOM's window.scroll()? Sending WM_VSCROLL?
Posted on 2005-05-19 07:16:14 by comrade
Yeah, but for windows messages I would have needed the hwnd of the IWebBrowser2 control, whiches the handle theoretically I can get by get_HWND, but it didn't work God knows why. Finally I solved it by getting the document via get_document, after it getting the body object by get_body and there with put_scrollTop. Sometimes I wish I would meet in a dark street with the inventor of the COM objects. But thanks. :)
Posted on 2005-05-20 19:21:41 by lacika