Re: type casts (FindWindow)
Bryan Bulten <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
> The problem in doing this, is that there isn't much of a way for us to > tell which C++ objects have been removed, and which ones are still > needed. I took a look at the Qt# system, and found that they use a similar method. I've implemented it for wx.NET (not committed yet.) In Qt, an event is sent to an object whenever an object is deleted. I was wondering if there is the same sort of thing for wxWindows? In the handler of this event, I'd like to remove the reference in the objects Hashtable. I'm not sure if EVT_CLOSE would be suitable, unless there's some sort of guarantee that the window will not recieve any more events. Alternatively, perhaps there's a way to attach to the destructor for each wxWindow, using inheritance, or other. Any ideas? -- Bryan Bulten http://opendev.ods.org/ http://wxnet.sourceforge.net/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+qjBL32WFWIzmzHgRAqS+AJ0RFqHdyMLaIMemEYbZJCcrst6OjgCfdShi f/1vaoFb6M1j1zpivILOw+E= =XPTv -----END PGP SIGNATURE-----