请看图片:
http://member.netease.com/~lilong/temp/222.jpg我使用GDI+的GraphicsPath,将一组通过WM_MOVE得到的点在屏幕上画出来
GraphicsPath pa;
pa.AddCurve(m_Points.GetData(), m_Points.GetCount());
Pen pen(get_Color(), (float)get_Size());
Graphics graphics(bmp);
graphics.DrawPath(&pen, &pa);在快速移动鼠标的时候,画面会出现如图所示的错位现象。如果用RedrawWindow();重新更新画面就没问题了。这是是什么原因造成的呢?怎么避免?我使用了memdc做缓冲。