title: windows resume from sleep message in MFC
body: <p>I am working on a program for Windows, and only on Windows xp 32 bit my bug happens.</p>
  
  <p>The thing is that when Windows is in sleep mode and I wake it up and my GUI is messed up.</p>
  
  <p>My program is connected to a server, and when the computer is waking up, the connection is broken. My GUI is going to the Login panel and doing a re-connection, but for some reason, the GUI display is only showing the animation of the re-connection, with all the rest of the components from the last screen also displayed.</p>
  
  <p>What it should be showing is a blank screen with-reconnecting animation.</p>
  
  <p>I want to catch the event/message that the system is passing to my application when it is waking up to clear the screen before reconnecting.</p>
  
  <p>Is there any way to do so?</p>