一开始移动位图,不会有残影,但是一直移动几分钟之后就开始产生残影了。
具体代码:
void MyWnd::OnPaint()
{
     CDC men;
     CPaintDC dc(this);
     men.CreateCompatibleDC(&dc);
     //MyCML为CImageList类。pt为鼠标所在位置
     MyCML.Draw(&men,bmp.index-1,pt,ILD_TRANSPARENT);
     dc.BitBlt(0,0,width,height,&men,0,0,SRCCOPY);
}