From a66dece0c5379f15263807f9c89b375cc60c6a31 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 24 Oct 2004 13:46:06 +0000 Subject: [PATCH] Removed list of modeless windows (apparently no longer needed). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/os2/toplevel.h | 5 ----- src/os2/frame.cpp | 2 -- src/os2/toplevel.cpp | 6 ------ 3 files changed, 13 deletions(-) diff --git a/include/wx/os2/toplevel.h b/include/wx/os2/toplevel.h index 45573e37e1..4e056f9da4 100644 --- a/include/wx/os2/toplevel.h +++ b/include/wx/os2/toplevel.h @@ -173,10 +173,5 @@ protected: DECLARE_EVENT_TABLE() }; // end of CLASS wxTopLevelWindowOS2 -// -// List of all frames and modeless dialogs -// -extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows; - #endif // _WX_MSW_TOPLEVEL_H_ diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index c0d17e3403..8a8545f7c8 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -51,7 +51,6 @@ // globals // ---------------------------------------------------------------------------- -extern wxWindowList wxModelessWindows; extern wxList WXDLLEXPORT wxPendingDelete; #if wxUSE_MENUS_NATIVE @@ -142,7 +141,6 @@ bool wxFrame::Create( ,rsName )) return FALSE; - wxModelessWindows.Append(this); return TRUE; } // end of wxFrame::Create diff --git a/src/os2/toplevel.cpp b/src/os2/toplevel.cpp index d98d7992b4..1687a5b7ab 100644 --- a/src/os2/toplevel.cpp +++ b/src/os2/toplevel.cpp @@ -52,9 +52,6 @@ // globals // ---------------------------------------------------------------------------- -// list of all frames and modeless dialogs -wxWindowList wxModelessWindows; - // the name of the default wxWidgets class extern void wxAssociateWinWithHandle( HWND hWnd ,wxWindowOS2* pWin @@ -643,9 +640,6 @@ bool wxTopLevelWindowOS2::Create( wxTopLevelWindowOS2::~wxTopLevelWindowOS2() { - if (wxModelessWindows.Find(this)) - wxModelessWindows.DeleteObject(this); - // // After destroying an owned window, Windows activates the next top level // window in Z order but it may be different from our owner (to reproduce -- 2.45.2