[comp.windows.misc] EM_GETLINE Problems

thh@hpindda.HP.COM (Tom Harper) (09/23/88)

Has anyone had any problems using EM_GETLINE to suck lines from an edit 
control?  I have a multiline edit control in a dialog box that cannot be
DS_LOCALEDIT.  Occasionally, a SendMessage(....,EM_GETLINE,..) returns
an incomplete line size.  EM_LINELENGTH always returns a correct length.
Increasing minimum heap size in the .def file helps, but why the edit control
needs to allocate space, I don't know; a buffer location and size is passed
also (which is locked).

Tom Harper
thh@hpindda.HP.COM