Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if a window is top most
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00173267
Message ID:
00173474
Vues:
48
>>>Is it possible to query a window to determine if it has been set as a top most window? I.e. if SetWindowPos() is used to set a window as top most ( HWND_TOPMOST ), is there an API function to query that window to determine if it is a top most window?
>>>
>>>Thanks,
>>
>>Hi Bill,
>>
>>You don't mean that you want the current foreground window (GetForegroundWindow), right? You can test if a window is a child window (IsChild), or loop through the windows like I do with the Is_Run function. That retrieves the handles of parent windows (top most) only.
>
>Hi George,
>
>It's not the specific foreground window I'm looking for but whether a window has been set as HWND_TOPMOST, i.e. above all non-topmost windows. I am looping thru the windows now ( this is in VB ... horrors :-) ) and I'm having to change my logic to make sure I hit all the windows and wanted to test to see if a window was set "topmost". As it turns out, because of the problem I was encountering ( yesterday ) and the solution I will implement ( today ), I won't need to test for this in my new solution. But now it's a matter of principle :-) and for future reference.
>
Hi Bill,

Just to clear up what may be some confusion about my other post. When I referenced the help window as being owned by VFP, I didn't mean that the window was owned by the VFP window. I think, however, that it is owned by the VFP process that causes it to shutdown. Sorry for the confusion.
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