Shoutbox

Autoscroll - RichEditControl - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Autoscroll - RichEditControl (/showthread.php?tid=88212)

Autoscroll - RichEditControl by geocine on 01-09-2009 at 09:26 AM

Is it possible to do autoscrolling in a richeditcontrol. If so, i would appreciate if you would give me an example to do such.


RE: Autoscroll - RichEditControl by SmokingCookie on 01-10-2009 at 12:44 PM

Well, all I can think of is sending EM_SETSCROLLPOS into your edit control.

See EM_SETSCROLLPOS Message() for details.

Sending a message into a control can be done in 2 ways:

code:
PlusWnd.SendControlMessage(ControlID,Message /* in your case WM_SETSCROLLPOS */ ,wParam,lParam);

or

code:
Interop.Call("User32.dll","SendMessageW",PlusWnd.GetControlHancle(ControlID),EM_SETSCROLLPOS,wParam,lParam

RE: Autoscroll - RichEditControl by geocine on 01-11-2009 at 10:10 PM

Anyway, I got it. Here is what i did

PlusWnd.SendControlMessage(ControlID,256,0x0022,0)