title: When is WM_PAINT called?
body: <p>When exactly is WM_PAINT called? Im trying to create a dialog based slot machine application, but i've run into a couple of logical issues. My application will consist of:</p>
  
  <ul>
  <li>"Spin" Button</li>
  <li>Exit Button</li>
  <li>Three BMP images to display the results of the spin(coin/heart/soldier)</li>
  </ul>
  
  <p>How will i show the final result of the spin using the BMP images? Am i correct in using WM_PAINT to attempt to display the images, how will i refresh the screen each time the user presses the spin button to show the new images? I really appreciate the help!</p>