I have a windows GUI program where you press a button, and it executes a looping code until you close it. However, there is no way for the user to close the win32 application (besides shutting it down in the windows task manager) because the interface goes white and does not respond. Is there a way to have this looping code execute, and still have a responsive GUI for when you want it to stop?