Win32Lib 2nd bug

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

Win32Lib developers take note:

  quoted from Win32Lib:

>>
if onEvent[ id ] > 0 then
        -- call routine
        call_proc( onEvent[ id ], {iMsg, wParam, lParam} )
<<

The problem:

Since onEvent doesnt pass the id from WndProc, there is no way
for the user to create his own message map.  This is important
with some controls.

Declaring a global atom such as:
  global atom myId

and then loading it as soon as windows calls WndProc:
  myId=find(hwnd,window_handle)

clears that problem up.  The user can then use getHandle(myId) to get
the actual hwnd if needed.

I'll have to update my copy in any case.

--Al

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

Search



Quick Links

User menu

Not signed in.

Misc Menu