D1246:绘图时 DC 销毁

设备上下文在 BeginDraw/EndDraw 块内被销毁。