X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1bdd5078c90d3813a815fc86ee3dd050b2ee1d3..abfcca57dd0d805ceec9e19c4be207614d79252a:/src/msw/dialog.cpp diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 3fbad08474..620a3de16a 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -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 } }