views:

169

answers:

2

Hi,

I have some controls like TWebBrowser, TRichText etc. which I want to scroll them (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.

+2  A: 

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

Hans Passant
+1  A: 

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

Remy Lebeau - TeamB