本文介绍了ControlStyles.DoubleBuffer与ControlStyles.OptimizedDoubleBuffer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之间的 ControlStyles.DoubleBuffer 的有什么区别和 ControlStyles.OptimizedDoubleBuffer 的?

What is the difference between ControlStyles.DoubleBuffer and ControlStyles.OptimizedDoubleBuffer?

ControlStyles.DoubleBuffer 的不会在智能感知出现下拉,而 ControlStyles.OptimizedDoubleBuffer 的其实是在列。

ControlStyles.DoubleBuffer does not show up in the Intellisense drop down whereas ControlStyles.OptimizedDoubleBuffer is in fact listed.

MSDN文档不赚取差价立即清除(至少对我来说)。

The MSDN documentation does not make the difference immediately clear (to me at least).

推荐答案

我发现this关于这个问题的螺纹:

I found this thread on the subject:

DoubleBuffered = true可将两者ControlStyles.OptimizedDoubleBuffer和ControlStyles.AllPaintingInWmPaint。

在一个点的目的是去precate DoubleBuffer并通过使用OptimizedDoubleBuffer代替,但是线程进入的原因,可能是一个坏主意(我不知道)

At one point the intention was to deprecate DoubleBuffer and adopt the use of OptimizedDoubleBuffer instead, however the thread goes into reasons why that might be a bad idea (that I dont understand)

它看起来像整个情况是一点点迷茫,但最终这两个标志做的非常类似的事情 - 线程表明仍有OptimizedDoubleBuffer和DoubleBuffer之间的细微差别,但犯规解释它们是什么

It looks like the whole situation is a tad confused, however ultimately these two flags do very similar things - the thread indicates that there are still subtle differences between OptimizedDoubleBuffer and DoubleBuffer, but doesnt explain what they are.

这篇关于ControlStyles.DoubleBuffer与ControlStyles.OptimizedDoubleBuffer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 01:04