CompuServe Messages

CEdit and SetCaratPos()

    08-Jul-94 22:10:28
Sb: #29867-CEdit and SetCaratPos()
Fm: Jake L. VanNoy 73062,1027
To: Jan Vandenbosch 100316,2771
I have a dynmaically sizing CEdit subclass too, and your description sounds more or less like my code. I don't have any problem with the caret on wraps though. Instead of SetWindowPos(), I'm using MoveWindow(ptNewLoc.x, ptNewLoc.y, sizeNeeded.cx, sizeNeeded.cy, TRUE); // new size, force repaint I hadn't figured out how to set the caret position when this CEdit was created, however, so now I'm off to play with SetSel…