Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Finding Forms

Finding Forms

Finding Forms

I use FindWindow to enumerate all the forms on a page, along with GetParent and IsWindowVisible to try and find all the visible windows on the system.

But there are a couple of programs I have (namely Winamp and PowerDVD) that this routine does not find.  Is there something I'm missing in using FindWindow, or is there something else I need to do to find these windows and identify them as something I can see on the desktop?

Measurement is not management.

RE: Finding Forms

Hi Glenn,

using Spy++ with winamp open, I can see there are multiple winamp windows on the desktop like "Winamp Library", "Winamp Video", ...
Findwindow should provide you with all windows.
Are you using the callback function (EnumWindows)?

here's an ms example:



 What You See Is What You Get
Never underestimate tha powah of tha google!

RE: Finding Forms

Finding the window addresses themselves is not the issue.  

The issue is that using GetParent and IsWindowVisible is not finding these windows for Winamp and PowerDVD.  They can both be open and the forms for them staring at me, but the code doesn't recognize them as such.

I was asking if there was another reliable method I was missing to determine whether there is a visibly drawn form or not (though I just got an idea I'll try).

Measurement is not management.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close