For message box: "Connection lost, reconnect?", please add MB_SETFOREGROUND flag.
I often initialize large FTP transfers, switch to another application and work with it. If connection gets lost, I don't know about it until I switch back to Total Commander. Moving error message box to top would be very helpful.
Regards
FTP connection failed - move error dialog to top
Moderators: Hacker, petermad, Stefan2, white
Yes, you are right. I also hate when some dialog moves unexpectedly to the top and catches keys that I press, for example in a text editor. This can be dangerous in general.
However, in this case, even if message box will catch Enter, nothing dangerous will happen - the only consequence will be reconnecting to the FTP server.
Moreover, Total Commander already uses MB_SETFOREGROUND flag in some cases, for example with strings 69, 195, 1202, and 1635 (numbers from language files). And also for background FTP transfers, error message box gets MB_SETFOREGROUND flag.
Regards
However, in this case, even if message box will catch Enter, nothing dangerous will happen - the only consequence will be reconnecting to the FTP server.
Moreover, Total Commander already uses MB_SETFOREGROUND flag in some cases, for example with strings 69, 195, 1202, and 1635 (numbers from language files). And also for background FTP transfers, error message box gets MB_SETFOREGROUND flag.
Regards