Ok, two things:

1. There's an example of how to find all of the available windows using the GetWindow API. I read that this can cause an infinite loop if used in a loop because of a 'destroyed window', so it's better to use EnumChildWindows or something. Could someone show me how this EnumChildWindows works? I looked it up but it's not helpful to me.

2. How would I enumerate all of the children of a parent (including buttons, listboxes, etc.)? By this I only mean the direct children, not list all children, such as the child of a child of a parent. If that last line confused you ignore it.

Thanks in advance.

[Edited by Phobic on 03-20-2000 at 09:19 PM]