General information
Category:
Coding, syntax & commands
>>How does one determine if a window exists on the WINNT desktop or if an app is running from within VFP?
>>Cheers
>>Campbell
>
>If you know the title of the main window you looking for, try this:
>
>DECLARE INTEGER FindWindow ;
>IN WIN32API ;
> STRING cNull, ;
> STRING cWinName
>
>TitleOfTheScreen = 'title'
>
>IF !FindWindow( 0, TitleOfTheScreen ) > 0
> **the windows does not exist!
>ENDIF
>
>
>HTH :0)
Gearld
Thanks for the reply. I have used the FindWindow API function with success.
Cheers
Campbell
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only