Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is_run32 & mulitple instances
Message
 
À
17/07/2000 11:38:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00393284
Message ID:
00393349
Vues:
14
>Hi George,
>
>I've found that article you wrote. I'm going to read it now. As for my code, the program always entered the function and processed every thing. But always returned 0. Unless I made the program interact with windows, i.e. the messagebox. It did't matter where the messagebox was. I even put it in your routine to see if the correct info was passed.
>
>I will look into that article. If I have any questions I'll drop you a line.
>
>Thanks for your help
Mike,

That's weird. All it does is loop through the top-level windows and retrieve the individual title bars and compare them. I've never seen an instance where it had to interact with another window to properly retrieve it. You might trying the following:
DECLARE INTEGER FindWindow IN Win32API;
 STRING @lpclass, STRING @lptitle
* lctitle is the title bar of the desired window
lnhwnd = FindWindow(0, @lctitle)
Sever things are of note with this function: First, it searches only top-level window. Second, it is case sensitive (case must match exactly). Third, the complete title of the window must be provided as it exists on the window.

If a match is found lnhwnd will be non-zero. Is_Run32() is not case sensitive and only requires that the known portion of the title bar is provided. It was designed for interacting with applications that have dynamic title bars.

If you do have any questions regarding the article, feel free to contact me.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform