开发者

Why is DrawReversibleFrame so slow?

开发者 https://www.devze.com 2023-03-28 03:15 出处:网络
Why is ControlPaint.DrawReversibleFrame so slow?I use it to draw a dashed frame around objects that are being resized or dragged around in my program. You can see that the redrawing lags quite a bit a

Why is ControlPaint.DrawReversibleFrame so slow? I use it to draw a dashed frame around objects that are being resized or dragged around in my program. You can see that the redrawing lags quite a bit as the mouse is moved around. In the MouseMove event, I use DrawReversibleFrame to draw the frame, so maybe that's my problem because it's redrawing too much. The funny thing is that while using my program under remote开发者_如何学运维 desktop, there is no problem and it redraws quite a bit faster and there is no lag.


I have just noticed that this only occurrs when Aero is used. It works perfectly fine when I use any other desktop theme that is not using Aero.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号