X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..b2c13097deb7736a86a278c02d0b3f7cd9873750:/src/mac/classic/dialog.cpp?ds=sidebyside diff --git a/src/mac/classic/dialog.cpp b/src/mac/classic/dialog.cpp index f29ed3e59e..6c9646751c 100644 --- a/src/mac/classic/dialog.cpp +++ b/src/mac/classic/dialog.cpp @@ -44,9 +44,9 @@ END_EVENT_TABLE() #endif -wxDialog::wxDialog() +void 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; }