Re: Win32Lib please fix msg handler
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Sep 05, 2000
- 439 views
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