本文整理自网络,侵删。
WebBrowser1实现滚屏
uses MSHTML;var a: IHTMLDocument2; x,y:Integer;begin y:=y+20; //加减进行上下滚动 a :=WebBrowser1.Document as IHTMLDocument2; a.Get_ParentWindow.Scroll(x,y);end;复制代码
相关阅读 >>
Delphi 详解 enumwindows 与 enumwindowsproc
Delphi winapi: loadstring - 从资源中载入字符串
更多相关阅读请进入《Delphi》频道 >>