0

I want to increment the height of my edit control when size of string in richedit control gets maximum means to its width. I have used EN_MaxText but it is not working in RichEdit control.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
Vivek
  • 21
  • 1
  • How isn't it working? Is it not sending the message? How do you attempt to intercept the message? – Goz Sep 06 '10 at 07:00
  • I have created control notofication handler for EN_MAXTEXT, that is OnEnMaxtext(). But it never gets executed. – Vivek Sep 06 '10 at 07:21
  • Do you want to check if the max character count is reached or if the text fits into the control without scrolling? – dwo Sep 10 '10 at 12:07

1 Answers1

0

You can use OnChange event and check the length. If it is reached you can do whatever you want, like use a MessageBox notifying the user.

Sunscreen
  • 3,452
  • 8
  • 34
  • 40