Many thanks Pritpal, new solution looks very good. To use GC with this method, you'd probably need to encapsulate HWND into a GC collected object and do the required cleaning when the HWND object goes out of scope.
I'll send you x64 results a bit later, still working in and on Linux for now. Brgds, Viktor On Mon, Feb 23, 2009 at 4:40 AM, <vouch...@users.sourceforge.net> wrote: > Revision: 10410 > > http://harbour-project.svn.sourceforge.net/harbour-project/?rev=10410&view=rev > Author: vouchcac > Date: 2009-02-23 03:40:33 +0000 (Mon, 23 Feb 2009) > > Log Message: > ----------- > 2009-02-22 19:32 UTC-0800 Pritpal Bedi (prit...@vouchcac.com) > * harbour/contrib/gtwvg/wvgwin.c > * harbour/contrib/gtwvg/wvg3stat.prg > * harbour/contrib/gtwvg/wvgcheck.prg > * harbour/contrib/gtwvg/wvgcombo.prg > * harbour/contrib/gtwvg/wvgdarea.prg > * harbour/contrib/gtwvg/wvglistb.prg > * harbour/contrib/gtwvg/wvgmle.prg > * harbour/contrib/gtwvg/wvgpushb.prg > * harbour/contrib/gtwvg/wvgradio.prg > * harbour/contrib/gtwvg/wvgscrlb.prg > * harbour/contrib/gtwvg/wvgsle.prg > * harbour/contrib/gtwvg/wvgstatb.prg > * harbour/contrib/gtwvg/wvgstatc.prg > * harbour/contrib/gtwvg/wvgtoolb.prg > * harbour/contrib/gtwvg/wvgtreev.prg > * harbour/contrib/gtwvg/wvgwnd.prg > ! Code cleanup. > ! Implemented generic callback functionality taking > use of SetProp()/GetProp() functions of WINAPI. It > effectively eliminates the use of AsCallBack() > function which has been discussed as non-scalable > in multi-processor architect. > > ; TODO: To use hb_gcAlloc() mechanism to hold the > codeblock. Please review wvgwnd():SetWindowProcCallback() > and wvgwin:WVG_SetWindowProcBlock( ::hWnd, bBlock ). > I did try but could not resolve it properly. > > Modified Paths: > -------------- > trunk/harbour/ChangeLog > trunk/harbour/contrib/gtwvg/wvg3stat.prg > trunk/harbour/contrib/gtwvg/wvgcheck.prg > trunk/harbour/contrib/gtwvg/wvgcombo.prg > trunk/harbour/contrib/gtwvg/wvgdarea.prg > trunk/harbour/contrib/gtwvg/wvglistb.prg > trunk/harbour/contrib/gtwvg/wvgmle.prg > trunk/harbour/contrib/gtwvg/wvgpushb.prg > trunk/harbour/contrib/gtwvg/wvgradio.prg > trunk/harbour/contrib/gtwvg/wvgscrlb.prg > trunk/harbour/contrib/gtwvg/wvgsle.prg > trunk/harbour/contrib/gtwvg/wvgstatb.prg > trunk/harbour/contrib/gtwvg/wvgstatc.prg > trunk/harbour/contrib/gtwvg/wvgtoolb.prg > trunk/harbour/contrib/gtwvg/wvgtreev.prg > trunk/harbour/contrib/gtwvg/wvgwin.c > trunk/harbour/contrib/gtwvg/wvgwnd.prg > > > This was sent by the SourceForge.net collaborative development platform, > the world's largest Open Source development site. > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour