Przemyslaw Czerpak wrote:
In Harbour user event handler receives as 1-st parameter event number and then ole parameters. So above functionality can be easy implemented as:oAx := WIN_AxGetControl( hWnd, ; {|event,...| myEventHandler( obj, event, ... ) } ) function myEventHandler( obj, event, ... ) switch( event ) case 1: return obj:terminalDSPEvent( ... ) case 2: return obj:infoEvent( ... ) case 3: return obj:exceptionEvent( ... ) endswitch return NIL
Awesome. Thank you. I think this is the last step for many people to allow *reliable and safe* access to many 3rd party ActiveX controls in Windows.
Regards Alex _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
