Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if a window is top most
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00173267
Message ID:
00173697
Views:
43
>Hi George,
>
>Thanks for the info. I hadn't thought of using GetDesktopWindow(), I was using GetWindow() with the GW_HWNDFIRST parameter to find the top-most window. This seems to work fine. Does it matter which method you use?
>
>Fortunately I know which windows I'm looking for so the issue of whether it's owned by another is not a problem for me. I have noted the interesting effect that Help opened in VFP is shut down when VFP is. Hadn't thought of the ownership issue here. Also, I caught your other post and I understand.
>
>At this point I can live w/o determining if a window is of top-most "status" or not. But what I'm getting from what you're saying is that there is no general way to determine if a window is of top-most "status" or not. It might be nice to do in some situations but if it's not possible ... oh well ... :-)
>
Hi Bill,

I hope you caught the exchanges (which I enjoyed tremendously) that I had with David and Christof. David's code is exactly what you need if the window has been set to always on top (as opposed to a top level window).

If it hasn't been set to always on top, then AFAIK, looping through the existing windows might be the best way to determine what the top level windows are. I'd be happy to post some code that would load an array with them, if you'd like.

And Christof set me straight on help thing. Had that one wrong. So if you haven't checked Christof's and David's posts, I'd say they're well worth reading.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform