Jacek Caban jacek@codeweavers.com wrote:
Actually the fact that you can't reproduce the described above behaviour with in your own tests tells quite a bit (yes, EndDialog() is not supposed to enable a previously disabled owner under some conditions).
Yes, that's the case if you reparent the dialog. My tests show that and implementation behaves as expected. We don't need DF_OWNERENABLED for that.
If you mean the trick with GWLP_HWNDPARENT then I'm not sure it's the best or really correct way of solving the problem. But yes, it looks like a good workaround.