Setting rect on CRichEditCtrl.
Posted on 2003-11-29
I have a rich edit view. The text runs all the way to the edges and I can't figure out how to set it in - give the control margins on the screen. I use this...
...in OnCreate in my Rich Edit View class and it works fine in XP. But it doesn't in Win98. I sat here for two hours trying every combination of getrect, getclientrect, setrect, invalidate, GetRichEditCtrl.Invalidate -- everything I can think of and I can't get the text to budge off the sides of the control. The left side doesn't look too bad, but on the right side the text goes right up against the edge.
Can someone please help me set the margins on a rich edit view? Thanks.