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.
精彩评论