ControlStyles.DoubleBuffer vs. ControlStyles.OptimizedDoubleBuffer

后端 未结 2 1062
闹比i
闹比i 2021-01-04 05:11

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

ControlStyles.DoubleBuffer does not sho

2条回答
  •  感情败类
    2021-01-04 06:08

    I found this thread on the subject:

    DoubleBuffered = true sets both ControlStyles.OptimizedDoubleBuffer AND ControlStyles.AllPaintingInWmPaint.

    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)

    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.

提交回复
热议问题