This event is sent just before the actual window associated with a wxWindow object is destroyed. Since it is derived from wxCommandEvent, the event propagates up the window hierarchy.
Event table macros
To process a window destruction event, use this event handler macro to direct input to a member function that takes a wxWindowDestroyEvent argument.
|EVT_WINDOW_DESTROY(func)||Process a wxEVT_DESTROY event.|
Event handling overview, wxWindowCreateEvent
wxWindowDestroyEvent(wxWindow* win = NULL)