Re: Win32Lib please fix msg handler

new topic     » goto parent     » topic index » view thread      » older message » newer message

Al Getz wrote:

<snip>

> The problem is, an event handler often has to return a value
> of 0 to tell
>   Windows it is processing the event.  Since 'popSelf()' only happens
>   with non-zero values, its impossible to override without
>   modifying the win32lib file.
>
>   How about fixing that in your various versions?
>   The simplest is:

<snip>

That's a very good point, although I think I'd change the implementation a
little:

in pushSelf

myReturn &= { {} }


in WndProc/SubProc

object retval
...

if atom(myReturn[length(myReturn)]) then
        return popSelf()
end if
...

There are some other changes that would have to me made, of course, but all
this would be hidden from the user, anyway.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu