From 11756f61e91b402432303d147a558ab37cf836bc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 21 Apr 2004 17:43:48 +0000 Subject: [PATCH] fixed #if in Create(); don't use wxModelessWindows any more git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index b44e0b8a21..9457d5bccd 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -85,9 +85,6 @@ wxDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); // globals // ---------------------------------------------------------------------------- -// list of all frames and modeless dialogs -wxWindowList wxModelessWindows; - // the name of the default wxWindows class #ifdef __WXWINCE__ extern wxChar *wxCanvasClassName; @@ -414,7 +411,9 @@ bool wxTopLevelWindowMSW::CreateFrame(const wxString& title, WXDWORD exflags; WXDWORD flags = MSWGetCreateWindowFlags(&exflags); -#if _WIN32_WCE < 400 || defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) +#if (defined(_WIN32_WCE) && _WIN32_WCE < 400) || \ + defined(WIN32_PLATFORM_PSPC) || \ + defined(WIN32_PLATFORM_WFSP) // Always expand to fit the screen in PocketPC or SmartPhone wxSize sz(wxDefaultSize); #else // other (including normal desktop) Windows @@ -519,9 +518,6 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent, wxTopLevelWindowMSW::~wxTopLevelWindowMSW() { - 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 // this simply Alt-TAB to another application and back before closing the -- 2.45.2