don't use hidden windows as implicit dialog parents neither

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-10-20 00:40:32 +00:00
parent e058b98d8a
commit 86f1458257
3 changed files with 5 additions and 14 deletions

View File

@@ -322,18 +322,6 @@ bool wxDialog::Show(bool show)
{
// use it
m_parent = parent;
// VZ: to make dialog behave properly we should reparent
// the dialog for Windows as well - unfortunately,
// following the docs for SetParent() results in this
// code which plainly doesn't work
#if 0
long dwStyle = ::GetWindowLong(GetHwnd(), GWL_STYLE);
dwStyle &= ~WS_POPUP;
dwStyle |= WS_CHILD;
::SetWindowLong(GetHwnd(), GWL_STYLE, dwStyle);
::SetParent(GetHwnd(), GetHwndOf(parent));
#endif // 0
}
}