Finding Forms
Finding Forms
(OP)
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?
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
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:
http://support.microsoft.com/kb/183009
/Daddy
-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
RE: Finding Forms
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.