The number of subwindows

kylinix
Posts: 4
Joined: 2012-07-14
Location: China

Hi,
I am writing a small program inserting multiple subwindows into a panel. Is there any comand or function I could use to count the number of subwindows in this panel?
Thanks in advance!


[ last edited August 22, 2012 - 07:30 ]
Posts: 836
Joined: 2007-06-29
Location: United States

You need the ChildWindowList() function. If you have subwindows inside of subwindows, you will need to write a recursive function to find them all.

Once you have a list, you can count the items using ItemsInList().

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com


kylinix
Posts: 4
Joined: 2012-07-14
Location: China

Thanks for your reply, that is exactly what i am after


Back to top