title: How to avoid pixel fighting when drawing on display with SetPixel?
body: <p>I am using <code>SetPixel(GetDC(0),x,y,color)</code> to write on the screen but as I do that, some other program updates it's screen and overwrites my drawn pixel thus the image drawn on screen appear to sparkle. <br><br></p>
  
  <p>How Can I avoid this and draw something on the screen without the fear that it will be overwritten?</p>