Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close a 3rd party window launched via external vfp utili
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Miscellaneous
Thread ID:
01114482
Message ID:
01114484
Views:
16
This message has been marked as the solution to the initial question of the thread.
Hi Bhavbhuti,

Each window can been ownner and parent window.
Active-X control has property hwnd - it's handle window.
You use API function GetWindow(hwnd, nFlags) or FindWindowEx(hwndParent,hwndChildAfter,lpszClass, lpszWindow) (see to MSDN) for retrieving child windows.

MartinJ

>Hi all
>
>I have an VFP app which calls an external VFP exe. This utility has instantiated an ActiveX control. This ActiveX control has in turn opened it's own 3rd party window on which there is no control from either VFP apps.
>
>Now I would like to close this window from either of the VFP apps, I would prefer to close it from the VFP exe which has instantiated the ActiveX, so that it can stay encapsulated.
>
>Hope I have been able to explain, please ask for details if required.
>
>Awaiting a solution.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform