0

Is it possible to set a user-defined value for notification rather than checking for default EN_MAXTEXT when control has been completely filled?

user22331
  • 1
  • 1

1 Answers1

0

Unfortunately, no. User-defined notifications do not exist.

Your (painful) alternative is to use the EN_CHANGE notification to notify you that a user has somehow changed the text and do a manual check to determine if it is full. (For example, you could check the line length with the EM_LINELENGTH message.) To receive the EN_CHANGE notification, be sure to specify ENM_CHANGE in the mask sent with the EM_SETEVENTMASK message. (See MSDN.)

Your best bet is to make EN_MAXTEXT work for you.

TREVOR
  • 151
  • 1
  • 2