wxDialog::IsModal() works

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-07-24 23:16:35 +00:00
parent e8b591249e
commit 22cf5fec15
2 changed files with 7 additions and 3 deletions

View File

@ -89,8 +89,7 @@ public:
void SetModal(bool flag);
virtual void Centre(int direction = wxBOTH);
virtual bool IsModal() const
{ return ((GetWindowStyleFlag() & wxDIALOG_MODAL) == wxDIALOG_MODAL); }
virtual bool IsModal() const;
// For now, same as Show(TRUE) but returns return code
virtual int ShowModal();

View File

@ -278,7 +278,12 @@ void wxDialog::GetPosition(int *x, int *y) const
bool wxDialog::IsShown() const
{
return m_isShown;
return wxModalDialogs.Find(this);
}
bool wxDialog::IsModal() const
{
return wxModalDialogs.
}
bool wxDialog::Show(bool show)