While selecting text in Edit Control, text extent changes

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?
2,260 views 1 replies
Reply #1 Top
Forgot to mention, I have applied Arial bold font. When the text extent decreases, It seems that the font size is not reducing, but the characters are coming too much closer.