title: "Interactive" Sleep in C++
body: <p>I started to learn c++ a while ago. I done a lot of console program with Visual Studio 2010 and now I want to make win32 programs. I read a lot of tutorial and I understand the basics now. </p>
  
  <p>I made a button which call another function. The function is doing great everything working. But there are Sleep(x) in this function and the GUI isn't responding while the Sleep doesn't end. The function is done in 60 sec because there is a lot of Sleep in it but it is do everything what is should just do GUI isn't responding this time. </p>
  
  <p>I think I know the source of this problem. In my opinion the problem is Sleep totally pause the application (Windows say: not responding). </p>
  
  <p>How can I make a Sleep/pause which doesn't freeze the GUI? Is there a function or I must do it in a totally different way?</p>
  
  <p>Thank you in advance!</p>