>I am a C++ programmer that has been told to get a FoxPro program working with my API. From a FoxPro program I need to hand the API the window handle of the FoxPro program and a WM_USER event.
>
>1. How do I get the handle of the window to hand to the API?
>2. How do I trap the WM_USER event inside of FoxPro?
>
>This has been the only thing I haven't been able to figure out.
>
>Thank You,
>Jay McMeans
You can use Foxtools functions: _WFindTitl() and _WhToHwnd() to get form handles. Main window handle can be retireved using API FindWindow(). I'm unsure about WM_USER.
Edward Pikman
Independent Consultant