开发者

How do I programmatically scroll a control in Windows?

I have some controls like TWebBrowser, TRichText etc. which I want to scroll t开发者_如何学Gohem (horizontally and/or vertically) from my program.

How do I achieve this?

PS: I think that it is doable by sending some messages to their handles but I don't know now which ones.

TIA.


WM_VSCROLL and/or WM_HSCROLL. GetScrollInfo() to find out how far you can go.


For edit controls, look at the EM_SCROLL and EM_LINESCROLL messages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜