]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use wxDIALOG_MODAL any more
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Apr 2004 07:02:36 +0000 (07:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Apr 2004 07:02:36 +0000 (07:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dialog.cpp

index f43c35fe3fdc9687baa93f8029a29a3890f2f65c..bda72189838606b8df67b3c8150e9733aa126cdd 100644 (file)
@@ -77,9 +77,6 @@ wxBEGIN_FLAGS( wxDialogStyle )
     wxFLAGS_MEMBER(wxCLIP_CHILDREN)
 
     // dialog styles
     wxFLAGS_MEMBER(wxCLIP_CHILDREN)
 
     // dialog styles
-    wxFLAGS_MEMBER(wxDIALOG_MODAL)
-    wxFLAGS_MEMBER(wxDIALOG_MODELESS)
-    wxFLAGS_MEMBER(wxNO_3D)
     wxFLAGS_MEMBER(wxWS_EX_VALIDATE_RECURSIVELY)
     wxFLAGS_MEMBER(wxSTAY_ON_TOP)
     wxFLAGS_MEMBER(wxCAPTION)
     wxFLAGS_MEMBER(wxWS_EX_VALIDATE_RECURSIVELY)
     wxFLAGS_MEMBER(wxSTAY_ON_TOP)
     wxFLAGS_MEMBER(wxCAPTION)
@@ -192,14 +189,10 @@ void wxDialog::SetModal(bool flag)
 {
     if ( flag )
     {
 {
     if ( flag )
     {
-        m_windowStyle |= wxDIALOG_MODAL;
-
         wxModelessWindows.DeleteObject(this);
     }
     else
     {
         wxModelessWindows.DeleteObject(this);
     }
     else
     {
-        m_windowStyle &= ~wxDIALOG_MODAL;
-
         wxModelessWindows.Append(this);
     }
 }
         wxModelessWindows.Append(this);
     }
 }
@@ -218,7 +211,7 @@ wxDialog::~wxDialog()
 
 bool wxDialog::IsModal() const
 {
 
 bool wxDialog::IsModal() const
 {
-    return (GetWindowStyleFlag() & wxDIALOG_MODAL) != 0;
+    return !wxModelessWindows.Member(this);
 }
 
 bool wxDialog::IsModalShowing() const
 }
 
 bool wxDialog::IsModalShowing() const