1. limitText

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

new topic     » topic index » view message » categorize

2. Re: limitText

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu