Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word stays ontop
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00143737
Message ID:
00144059
Vues:
18
>>>>oWord = createobject( "word.application" ) && Word97 NO office SPs installed.
>>>>oWord.Visible = .t.
>>>>
>>>>Ok, Word shows up on top of the VFP window as an inactive window, and remains there on top even after clicking around in the VFP window. The Word window won't go behind VFP until I click it to make it active and then click back to VFP.
>>>>
>>>>Any ideas on how to get around this?
>>>
>>>Hi David,
>>>
>>>I haven't tested this, but I'd look at the SetWindowPos() function. If it can set the attributes of the window as being always on top, surely it can set it as something else.
>>
>>You could use the api and showwindow to minimize the Word window.
>
>Hi John,
>
>Certainly, however that wouldn't change the on-top status. The problem here is that once the Word window is activated, for some reason, its Z-Order placement is being indicated as -1, which keeps the window always on top. The SetWindowPos() function should change this.

I have sp1 on my machine and Word doesn't act this way. I guess that's why I didn't understand. Actually, when I have an app that requires interaction with Word and the user, I call the windows api showwindow twice. Once to minimize, then to maximize. Maximizing alone wasn't bringing Word up to the top.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform