Home All Groups Group Topic Archive Search About

How to get title of all "child" windows?

Author
15 Jan 2007 9:20 PM
Joe HM
Hello -

I have an application with which I am trying to determine whether
another application has a "child" window open.  So I used
Process.MainWindowTitle() but that will only give me the main window
since the "child" window does not get its own button in the Task Bar.

Is there any way to get the window titles of all open windows including
the ones that do not show in the Task Bar?

Thanks!
Joe

Author
16 Jan 2007 1:30 AM
Newbie Coder
You need to use the EnumChildWindows API using a callback delegate function.
If you search Google etc. you'll soon find many examples. Places like
http://www.planet-source-code.com & http://www.codeproject.com are two good
sites for free source code

I hope this was of some help to you

Do yourself a favour Joe & spoof your e-mail address unless you are fond of
SPAM.

Newbie Coder
(It's just a name)