ce92055f3a
This dialog is non-modal and so using GetParentForModalDialog() for it is not quite right, because this function checks that the candidate parent window is visible, which may not be the case for a modeless dialog parent, as the dialog isn't necessarily going to be shown immediately, but may well be shown later, after showing its parent. And not allowing to use the not yet shown parent was also inconsistent with the native MSW version which didn't have any problem with this. So fix this by adding new GetParentForModelessDialog() function and using it for this modeless dialog instead. This required slightly refactoring wxDialog code to allow reusing most of it between the old GetParentForModalDialog() and the new function. |
||
---|---|---|
.. | ||
msvc/wx | ||
wx |