]> git.saurik.com Git - wxWidgets.git/commitdiff
add more references to the delayed deletion of wxTopLevelWindows
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 25 Nov 2008 00:24:58 +0000 (00:24 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 25 Nov 2008 00:24:58 +0000 (00:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dialog.h
interface/wx/frame.h
interface/wx/toplevel.h

index bb798df560a3d4b56a9ec5f0f551326541a73ee2..e057bc30ed6a2cc65f40bdc2d1085f17012efca2 100644 (file)
@@ -180,8 +180,11 @@ public:
              const wxString& name = wxDialogNameStr);
 
     /**
-        Destructor. Deletes any child windows before deleting the physical
-        window.
+        Destructor.
+
+        Deletes any child windows before deleting the physical window.
+
+        See @ref overview_windowdeletion for more info.
     */
     virtual ~wxDialog();
 
index 04de46ed7a6de561886ba0725d00bd2c1d7913ed..58348fca312a1d64d31df5208824909ebc9b9ce1 100644 (file)
@@ -165,6 +165,8 @@ public:
 
     /**
         Destructor. Destroys all child windows and menu bar if present.
+
+        See @ref overview_windowdeletion for more info.
     */
     virtual ~wxFrame();
 
index 51aa45c6569f0f54e79ebcf4238609d25f245424..822e2edc7f3c06778e5a7674a07b303579b77a4e 100644 (file)
@@ -53,6 +53,42 @@ enum
 class wxTopLevelWindow : public wxWindow
 {
 public:
+    /**
+        Default ctor.
+    */
+    wxTopLevelWindow();
+
+    /**
+        Constructor creating the top level window.
+    */
+    wxTopLevelWindow(wxWindow *parent,
+                    wxWindowID winid,
+                    const wxString& title,
+                    const wxPoint& pos = wxDefaultPosition,
+                    const wxSize& size = wxDefaultSize,
+                    long style = wxDEFAULT_FRAME_STYLE,
+                    const wxString& name = wxFrameNameStr);
+
+    /**
+        Destructor. Remember that wxTopLevelWindows do not get immediately
+        destroyed when the user (or the app) closes them; they have a
+        @b delayed destruction.
+
+        See @ref overview_windowdeletion for more info.
+    */
+    virtual ~wxTopLevelWindow();
+
+    /**
+        Creates the top level window.
+    */
+    bool Create(wxWindow *parent,
+                wxWindowID id,
+                const wxString& title,
+                const wxPoint& pos = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize,
+                long style = wxDEFAULT_FRAME_STYLE,
+                const wxString& name = wxFrameNameStr);
+
     /**
         Returns @true if the platform supports making the window translucent.