title: How can I clear TCanvas? Or any other solution
body: <p>I'm using this TCanvas to draw cursors for my mice</p>
  
  <pre><code>Canv := TCanvas.Create;
  Canv.Handle := GetWindowDC(0);
  </code></pre>
  
  <p>....
  For every mice event do the following</p>
  
  <pre><code>Bitmap:=TBitmap.Create;
  CursorInfo.cbSize := sizeof(CursorInfo);
  GetCursorInfo(CursorInfo);
  
  Bitmap.Width := 32;
  Bitmap.Height := 32;
  Bitmap.Transparent:=true;
  
  DrawIconEx(Bitmap.Canvas.Handle, 0,0, CursorInfo.hCursor, 32,32, 0,0, DI_NORMAL) ;
  
  Bitmap.Canvas.Brush.Color := RGB(250,250,250);
  Bitmap.Canvas.FloodFill(31,0, clWhite, fsSurface);
  Bitmap.Canvas.FloodFill(0,0, clWhite, fsSurface);
  
  currentX:=getcurrentxpos;
  currentY:=getcurrentypos;
  
  Canv.Draw(currentX,currentY,Bitmap);
  Bitmap.Free;
  </code></pre>
  
  <p>The problem is instead of just showing the individual cursors, it makes <a href="http://www.aidis.org/support/images/mouse_sett.gif" rel="nofollow noreferrer">mouse trails</a>. Can I clear the whole Canvas evertime a mouse moves? (doesn't sound like a good idea though). Maybe I could clear my previous <code>Canv.Draw</code> by doing the reverse of that code (if it is possible)? Any suggestions as to how I can show the cursors?</p>
  
  <p>EDIT:
  tried inserting another <code>Canv.Draw(currentX,currentY,Bitmap);</code> just after setting the bitmap width and height...and now the problem is I have a white trail (rather than a mouse trail), much cleaner but still no good.</p>