1. RE: LimitText

Hi Jonas,

Congrats, you found a bug!  The value of EM_LIMITTEXT is correct, the 
problem is with the sendMessage:

VOID = sendMessage( id, lMsgType, NULL, pSize )

should be:

VOID = sendMessage( id, lMsgType, pSize, NULL )

-- Brian


Jonas  Temple wrote:
> Derek,
> 
> It seems that LimitText is not working.  I looked at the routine in 
> win32lib and it seems to be coded correctly but I could not verify the 
> value of EM_LIMITTEXT as I do not have a windows.h here.  
> 
> Could you verify that?
> 
> Thanks!
> 
> Jonas
> 
>

new topic     » topic index » view message » categorize

2. RE: LimitText

Brian,

Thanks!  That did the trick!  I even looked at the M$ doc and didn't see 
that one!

Jonas
Brian Broker wrote:
> Hi Jonas,
> 
> Congrats, you found a bug!  The value of EM_LIMITTEXT is correct, the 
> problem is with the sendMessage:
> 
> VOID = sendMessage( id, lMsgType, NULL, pSize )
> 
> should be:
> 
> VOID = sendMessage( id, lMsgType, pSize, NULL )
>

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

3. RE: LimitText

Thanks guys. It is now fixed. I've been away from home all week and I don't
have the SDK loaded on my laptop.

-----Original Message-----
From: Brian Broker [mailto:bkb at cnw.com]
Subject: RE: LimitText



Hi Jonas,

Congrats, you found a bug!  The value of EM_LIMITTEXT is correct, the
problem is with the sendMessage:

VOID = sendMessage( id, lMsgType, NULL, pSize )

should be:

VOID = sendMessage( id, lMsgType, pSize, NULL )

-- Brian


Jonas  Temple wrote:
> Derek,
>
> It seems that LimitText is not working.  I looked at the routine in
> win32lib and it seems to be coded correctly but I could not verify the
> value of EM_LIMITTEXT as I do not have a windows.h here.
>
> Could you verify that?
>
> Thanks!
>
> Jonas
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu