<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<!-- THIS FILE IS GENERATED DO NOT EDIT -->


<erlref>
<header>
  <copyright>
    <year>2020</year>
    <holder>Ericsson AB. All Rights Reserved.</holder></copyright>
  <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.

  </legalnotice>
  <title>wxWindowDestroyEvent</title>
</header>
<module>wxWindowDestroyEvent</module>
<modulesummary>Functions for wxWindowDestroyEvent class</modulesummary>
<description><p>This event is sent as early as possible during the window destruction process.
      </p><p>For the top level windows, as early as possible means that this is done by <seeerl marker="wxFrame"><c>wxFrame</c></seeerl> or <seeerl marker="wxDialog"><c>wxDialog</c></seeerl> destructor, i.e. after the destructor of the derived class was executed and so any methods specific to the derived class can't be called any more from this event handler. If you need to do this, you must call <c>wxWindow::SendDestroyEvent()</c> (not implemented in wx) from your derived class destructor.
      </p><p>For the child windows, this event is generated just before deleting the window from <seemfa marker="wxWindow#'Destroy'/1"><c>wxWindow:'Destroy'/1</c></seemfa> (which is also called when the parent window is deleted) or from the window destructor if operator <c>delete</c> was used directly (which is not recommended for this very reason).
      </p><p>It is usually pointless to handle this event in the window itself but it ca be very useful to receive notifications about the window destruction in the parent window or in any other object interested in this window.
      </p><p>See: <url href="https://docs.wxwidgets.org/3.1/overview_events.html#overview_events">Overview events</url>, <seeerl marker="wxWindowCreateEvent"><c>wxWindowCreateEvent</c></seeerl>
      </p>
  <p>This class is derived (and can use functions) from: 
    <seeerl marker="wxCommandEvent"><c>wxCommandEvent</c></seeerl> <seeerl marker="wxEvent"><c>wxEvent</c></seeerl></p>
  
  <p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_window_destroy_event.html">wxWindowDestroyEvent</url></p>
  </description>
<datatypes>
    <datatype><name name="wxWindowDestroyEvent"/></datatype>
    <datatype><name name="wxWindowDestroy"/></datatype>
    <datatype><name name="wxWindowDestroyEventType"/></datatype></datatypes>

</erlref>
