X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..e4727773a688e990658dd9179d347b15ad9a1d3e:/src/mac/classic/dialog.cpp diff --git a/src/mac/classic/dialog.cpp b/src/mac/classic/dialog.cpp index f29ed3e59e..c5f6c57119 100644 --- a/src/mac/classic/dialog.cpp +++ b/src/mac/classic/dialog.cpp @@ -44,9 +44,9 @@ END_EVENT_TABLE() #endif -wxDialog::wxDialog() +wxDialog::Init() { - m_isShown = FALSE; + m_isModalStyle = false; SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); } @@ -75,7 +75,7 @@ void wxDialog::SetModal(bool flag) { if ( flag ) { - m_windowStyle |= wxDIALOG_MODAL; + m_isModalStyle = true; wxModelessWindows.DeleteObject(this); #if TARGET_CARBON @@ -84,7 +84,7 @@ void wxDialog::SetModal(bool flag) } else { - m_windowStyle &= ~wxDIALOG_MODAL; + m_isModalStyle = false; wxModelessWindows.Append(this); } @@ -117,7 +117,7 @@ void wxDialog::OnCharHook(wxKeyEvent& event) bool wxDialog::IsModal() const { - return (GetWindowStyleFlag() & wxDIALOG_MODAL) != 0; + return m_isModalStyle; }