1. limitText
- Posted by Larry Miller <larrymiller at sasktel.net> Nov 12, 2004
- 493 views
- Last edited Nov 13, 2004
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 ) Larry Miller
2. Re: limitText
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 12, 2004
- 486 views
- Last edited Nov 13, 2004
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