>*"A thread cannot use DestroyWindow to destroy a window created by a different thread."
>
>Does this mean that a VFP application cannot destroy the window created by another VFP application? An example of my implementation using the Calculator as the test window. Code snippet as follows:>* note: open the Calculator accessory >declare integer FindWindow in win32api string @lpClassName, string @lpWindowName >declare integer DestroyWindow in user32 integer hwnd > >local hWnd_ >hWnd_ = FindWindow(0,"Calculator") >if hWnd_ > 0 > wait window transform(hWnd_) > wait window transform(DestroyWindow(hWnd_)) && does not close the calculator! >endif >>TIA.