Getting All Top Level Windows with Specified ClassName

  • Thread starter Thread starter Lex
  • Start date Start date
L

Lex

Is there are win32 function to get a list off all top level windows
with a given class name?

Right now I am using EnumWindows (getting all windows) and then using
GetClassName on each window to see if it is a window that I care
about.

I was hoping there was something a little cleaner

Regards
 
Is there are win32 function to get a list off all top level windows
with a given class name?

Right now I am using EnumWindows (getting all windows) and then using
GetClassName on each window to see if it is a window that I care
about.

I was hoping there was something a little cleaner

Regards

I tried looking for the same too. But could not find anything better than
what you are doing.

--
Adrian Mascarenhas, Developer Division

This posting is provided "AS IS" with no warranties, and confers no rights.

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top