Herman,
>I think you just need to bind only once (HWND = 0 / NULL). It will receive messages from all windows that created by VFP. I think it's better if you create a class for this. And create a "Form Name" property. Fill this property on the activation of the form, so the class will know which one is the active form. Otherwise you have to check which one is the active form from the "hWnd" parameters
>
>The only thing here is you don't get the message from windows which the classname was not created by VFP, such as menu/popup. So you can't bind to WM_LBUTTONUP. If you want you can create a low level hook (WH_MOUSE_LL) simply monitor WM_LBUTTONUP that will be send to your apps, all is done!
Excellent ideas!
Thank you very much!
Regards,
Malcolm