I have a multi-line edit control in a dialog box that gets subclassed by a CEdit derived class. When I select the text of the control, the text extent reduces. So, when I move the selection cursor from column 0 towards the end of the line, more text gets included in the selection while the unselected part retains the original extent. When I reach the lasi character in the line, the unselected text that was being displayed due to selected text shorter extent disappears and I see only the selected text now. The moment I move to the next line (hence dismissing the selection) the text regains its original extent.
I do not think this has anything to do with Subclassing though. Any clues?