EN_ERRSPACE Problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: EN_ERRSPACE Problem

  1. #1
    Join Date
    Jul 2008
    Posts
    2

    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

  2. #2
    Join Date
    Apr 2009
    Posts
    598

    Re: EN_ERRSPACE Problem

    At http://msdn.microsoft.com/en-us/libr...78(VS.85).aspx, it is said:
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center