remove wxMSW-specific FindSuitableParent() and use GetParentForModalDialog() everywhere; extend it with additional checks and remove redundant ones elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -442,7 +442,7 @@ int wxMessageDialog::ShowModal()
|
||||
|
||||
// use the top level window as parent if none specified
|
||||
if ( !m_parent )
|
||||
m_parent = FindSuitableParent();
|
||||
m_parent = GetParentForModalDialog();
|
||||
HWND hWnd = m_parent ? GetHwndOf(m_parent) : NULL;
|
||||
|
||||
// translate wx style in MSW
|
||||
|
Reference in New Issue
Block a user