October 29th, 2009, 08:50 AM
How to enable a button press during a loop of appending edit box in MFC
I have a dialog window developed in visual c++.net 2003 MFC. I have a edit box in the dialog, and also a generate and Abort button. in my code, I have a while loop to append information into the edit box, the while loop may take for a long time, so I need to have a abort button can be able to pressed during the while loop. but it looks like any button are not activated while the edit box is updated. So I would like to know if there is a easy way that I can get the abort button pressed so that I can setup a flag to break the while loop.
Thanks a lot!
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!