>>It'd take whatever window had focus; assuming that GetActiveWindow() grabs the VFP window, then GetWindow() would follow the behavior associated with GW_CHILD:
>>
>>
The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL. The function examines only child windows of the specified window. It does not examine descendant windows.>>
>>It's a blind stab, and makes some tremendous assumptions about VFP's treatment of forms as direct child windows of GetActiveWindow(). But it's worth a shot if you haven't found something more promising...
>
>Hi Ed,
>
>Well, it was worth trying. I tried passing the window handle as the bScan parameter, and tried using SetActiveWindow() to set the window, but no luck.
Did it return a non-null value?