I have a GUI with many buttons and other controls in it. I have a long-running ( 10 seconds ) algorithm that gets launched in some situations. While it is running, I don't want the user to poke any of the GUI buttons or controls. I can put code at the top of each handler to check if its OK or not -- but, as there are many controls, this is a bit onerous. So, I was wondering if there is some 'global' way that I can temporarily disable the GUI? Suspend the windows message loop? My world is: MS MFC VC++
Thanks for ideas.