Edmundo,
I looked into my MouseDown event code for the MapObjects ActiveX control and found that I am "refreshing" the map by setting it's extent to it's existing extent as follows:
oMap.extent = oMap.extent
I didn't check into it, but, I suspect that setting this property implicitly calls the AftertrackinglayerDraw event.
See if that works for you.
Mike
>Mike:
>
>Thank you for your answer. I include debugging messages and drawing routines in the AFTERTRACKINGLAYERDRAW event but only executes after the form it's activated, for example, if i turn to other application and then to foxpro, thus making my form active.
>
>My development platform it's VFP8SP1, WIN2000P and MAPOBJECTS2.2.