I am trying to find the names of all the opened Windows.
I am using EnumWindows API, and I am at the point that I can print bunch of Window titles; however, it's printing much more than I wanted.
For example, I have winamp, visual stuido, 1 internet explore open. The program printed out the 3 things above, but it's also printing things like:
Just a quick note - it DID work as it should in the first place, only you didn't know that EnumWindows enumerates hidden windows too...
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more...
Just a quick note - it DID work as it should in the first place, only you didn't know that EnumWindows enumerates hidden windows too...
Yeah, I thought EnumWindows only enumerate the visible windows. I guess I should have said, "It's working as I want it to" =))
Here is the definition of EnumWindows from MSDN:
The EnumWindows function enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.
I guess I mis-understood top-level windows.
So what is top-level windows then?
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more...
Bookmarks