RE: Bug in Win32Lib? Need fix!

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

I do not see this error. Your getPointerRelPos() should have this code:

global function getPointerRelPos(integer pId)
    if validId(pId) then
        return getPointerPos() - getClientPoint(pId, 0, 0)
    else
        return {0, 0}
    end if
end function

This may have been on the mailing list before, and that's where I got this 
fix. Either that, or you have an old version.

>From: CoJaBo <cojabo at suscom.net>
>Reply-To: EUforum at topica.com
>To: EUforum at topica.com
>Subject: Bug in Win32Lib? Need fix!
>Date: Sun, 11 Apr 2004 00:06:50 +0000
>
>
>Below is the code, right clicking the listview colum heading causes a
>crash. I need a fix for this ASAP.
>
>--  code generated by Win32Lib IDE v0.18.9x
>include Win32Lib.ew
>without warning
>
>--  Window w
>constant w = createEx( Window, "", 0, Default, Default, 400, 300, 0, 0 )
>constant ListView2 = createEx( ListView, {"ListView2"}, w, 56, 20, 200,
>200, or_all({LVS_REPORT,LVS_SHOWSELALWAYS}), 0 )
>
>Top of EX.ERR:
>\Win32Lib.ew:22411 in function getPointerRelPos()
>attempt to exit a function without returning a value
>     pId = 0
>
>... called from C:\ProgramDev\Core\include\Win32Lib.ew:24285 in function
>fDoNM_RCLICK()
>     id = 0
>     hWnd = 1773334
>     wParam = 0
>     lParam = 457460
>     xy = <no value>
>     keys = <no value>
>
>
>
>For Topica's complete suite of email marketing solutions visit:
>http://www.topica.com/?p=TEXFOOTER
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu