If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

EN_ERRSPACE Problem

Hello all. On a dialog box I have a multiline edit control and I am trying to handle it's internal buffer manually. However, the edit control does not send me the EN_ERRSPACE notification so I know when to resize the buffer. Here is the window procedure for my dialogbox: http://codepad.org/VgsfFrLa

Re: EN_ERRSPACE Problem

EN_ERRSPACE Notification Code
Sent when an edit control cannot allocate enough memory to meet a specific request.

Therefore it is sent only if a malloc() would fail, which is a different situation than the one you expect. Maybe EN_MAXTEXT would be more interesting to you, or maybe, you would have to count the characters by yourself.