mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 12:36:40 +00:00
32 lines
586 B
C#
32 lines
586 B
C#
using System.Windows.Forms;
|
|
|
|
namespace AppleBatch_June.Views
|
|
{
|
|
public class DoubleBufferListView : ListView
|
|
{
|
|
protected override CreateParams CreateParams
|
|
{
|
|
get
|
|
{
|
|
CreateParams obj = base.CreateParams;
|
|
obj.ExStyle |= 33554432;
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
public DoubleBufferListView()
|
|
{
|
|
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer, value: true);
|
|
UpdateStyles();
|
|
}
|
|
|
|
protected override void OnNotifyMessage(Message m)
|
|
{
|
|
if (m.Msg != 20)
|
|
{
|
|
base.OnNotifyMessage(m);
|
|
}
|
|
}
|
|
}
|
|
}
|