Loop through all wxFrames (and wxDialogs)?
Posted: Sat Oct 29, 2011 10:00 pm
I wonder how can I loop through all wxFrames and wxDialogs in my application?
I want to do this in order to find windows by their (base) class type and when the window is found possible also examine some of its public properties. Eg. figure out if a property window for a certain object is open or not.
Can I perhaps access some container that can be used to iterate over all top level windows? (I've tried to search the API + google but have not found anything)
Edit: I'm using wxWidgets 2.9.2
I want to do this in order to find windows by their (base) class type and when the window is found possible also examine some of its public properties. Eg. figure out if a property window for a certain object is open or not.
Can I perhaps access some container that can be used to iterate over all top level windows? (I've tried to search the API + google but have not found anything)
Edit: I'm using wxWidgets 2.9.2