+void wxDialog::ShowWindowModal()
+{
+ m_modality = wxDIALOG_MODALITY_WINDOW_MODAL;
+
+ Show();
+
+ DoShowWindowModal();
+}
+
+wxDialogModality wxDialog::GetModality() const
+{
+ return m_modality;
+}
+
+// NB: this function (surprisingly) may be called for both modal and modeless