While selecting text in Edit Control, text extent changes

Monday, March 28, 2005 by jdhall | Discussion: WindowBlinds

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?
jdhall
Reply #1 Monday, March 28, 2005 7:28 PM
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.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01