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:
parent
b7ce141fd1
commit
abb492ba03
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user