Hi! I'd suppose you can use EM_GETRECT and EM_SETRECT just like any other windows message sent to your RTB. The declaration of SendMessage is something like this:
[DllImport("user32.dll")]
private static extern int SendMessage(IntPtr hWnd, int msg, IntPtr wPar, IntPtr lPar);
Then you can use this function to send the messages to your RTB. The last parameter (lPar) is used for the rectangle. You can use the Marshal.StructureToPtr() and Marshal.PtrToStructure() methods to transfer the rectangle data to your working structures. That should do the trick...
Regards, mav -- Black holes are the places where god divided by 0...