Managing modeless document windows

Kenneth Porter <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <86667676D03E8B249DB1A0B2@[10.96.7.39]>
I'm looking for an idiom for handling document window lifetimes. I want to 
be able to spawn frames independent of the main application frame but have 
them clean up properly when the app exits. If the user opens the same 
document twice, I'd like to switch to the already-open frame associated 
with it.

It seems like I should hold a container of document frame pointers in the 
main frame, and the close event in the document frames should be forwarded 
to the app frame so that it can destroy the document frame and remove its 
pointer from its container. Is there another approach I should consider?

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/86667676D03E8B249DB1A0B2%40%5B10.96.7.39%5D.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.