Fix setting the parent of wxProgressDialog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Nov 2011 10:48:05 +0000 (10:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Nov 2011 10:48:05 +0000 (10:48 +0000)
commit516ed23a948380fab200457b5adb2907e0b180a0
treea6d3d2ea32a7545010aee5ec1f3767cd6d123ba3
parent37bea8d229d7e3a8e9f242cdeb19976fee125092
Fix setting the parent of wxProgressDialog.

Don't call GetParentForModalDialog() with wxProgressDialog style, this doesn't
work as it expects the window style.

Do call SetParent() when using the native MSW implementation as the wx-level
parent is not used then.

Closes #13706.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/progdlgg.cpp
src/msw/progdlg.cpp