in a dialog when i hit a button some robust calculations begin. they may take a long time and the user may decide to cancel them and examine another parameters. i put a button for this purpose, but how can it be hit while the program is still busy with th e calculations begun by hitting the other button? the code is not yet done its job and the function is not yet returned from. so the hit button message cannot be processed until returning from the function.
this happens mostly in such programs. what's the routine and the best way to resolve it and what's the method used in such cases?