I have recently been implementing an app to download some files from the internet and stumbled across the following problem:-
I bring up a dialog box using DoModal(), and in that dialog box I have a button called start. I have a handler called OnStartButtonPressed() which is called when ever I press the start button. The code within this button handler downloads a bunch of files from the internet, however I seem to not be able to interact with it once it starts downloading the files. I can no longer do any of the following:-
a) Adjust the dialogs position or size etc...
b) interact with any of the buttons or text boxes within the dialog box
c) Cancel and OK do not even respond.
d) I cant even close the dialog box.
The only way I can stop it before it has finished downloading the files is to use CTRL+ALT+DEL and shuit it down even then it hangs around in the system for a bit.
I have a CProgressCtrl in the dialog which is the only that that works.
I can get to other applications and use them fine, it seems like I have locked my dialog window up whilst the handler downloads the internet files.
How do I get around this, is it possible without using threads?