X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..9034c5906c1c5248dda83f186177f07279bfbab4:/src/mac/classic/dialog.cpp 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; }