Allow non-toplevel-window to given as the

parent of a message dialog (as it is done
   in the controls sample).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2004-03-16 11:54:45 +00:00
parent b7ce141fd1
commit abb492ba03
2 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,10 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
m_caption = caption;
m_message = message;
m_dialogStyle = style;
while (!parent->IsTopLevel())
parent = parent->GetParent();
m_parent = parent;
}

View File

@ -39,6 +39,10 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
m_caption = caption;
m_message = message;
m_dialogStyle = style;
while (!parent->IsTopLevel())
parent = parent->GetParent();
m_parent = parent;
}