Re: limitText
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 12, 2004
- 485 views
Larry Miller wrote: > > There appears to be an error in Win32Lib's "limitText" procedure. > The lParam and wParam parameters are reversed. In it's present form it will > limit the text to no more than 64K of an RTF file. There is no apparent > problem with TXT files. > > Original: > VOID = sendMessage( id, lMsgType, pSize, NULL ) > > Corrected: > VOID = sendMessage( id, lMsgType, NULL, pSize ) Good catch. The EM_LIMITTEXT needs lParam to be zero, and EM_EXLIMITTEXT needs wParam to be zero. -- Derek Parnell Melbourne, Australia