mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 22:31:24 +00:00
添加项目文件。
This commit is contained in:
31
AppleBatch_June.Views/DoubleBufferListView.cs
Normal file
31
AppleBatch_June.Views/DoubleBufferListView.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user