- 중간 커밋

This commit is contained in:
2017-01-26 15:41:25 +09:00
parent df0ee31d18
commit 16733892b7
20 changed files with 171 additions and 148 deletions

26
ListViewNF.cs Normal file
View File

@@ -0,0 +1,26 @@
using System.Windows.Forms;
namespace NewsCrawler
{
class ListViewNF : System.Windows.Forms.ListView
{
public ListViewNF()
{
//Activate double buffering
this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
//Enable the OnNotifyMessage event so we get a chance to filter out
// Windows messages before they get to the form's WndProc
this.SetStyle(ControlStyles.EnableNotifyMessage, true);
}
protected override void OnNotifyMessage(Message m)
{
//Filter out the WM_ERASEBKGND message
if (m.Msg != 0x14)
{
base.OnNotifyMessage(m);
}
}
}
}