add BlazingFast property to VirtualListView. you may like it or you may not.

This commit is contained in:
zeromus 2011-08-02 22:58:24 +00:00
parent 183ef7f14c
commit adc0bf83bb
1 changed files with 12 additions and 0 deletions

View File

@ -200,6 +200,7 @@ namespace BizHawk
}
internal enum WindowsMessage : uint {
WM_ERASEBKGND = 0x0014,
WM_LBUTTONDOWN = 0x0201,
WM_LBUTTONUP = 0x0202,
WM_LBUTTONDBLCLK = 0x0203,
@ -389,6 +390,7 @@ namespace BizHawk
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.Opaque, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
}
~VirtualListView() {
@ -546,6 +548,14 @@ namespace BizHawk
// if (SelectedIndices.Count > 0 && SelectedIndices[0] >= VirtualListSize)
// messageProcessed = true;
// break;
case (int)WindowsMessage.WM_ERASEBKGND:
if (BlazingFast)
{
messageProcessed = true;
m.Result = new IntPtr(1);
}
break;
default:
break;
}
@ -558,6 +568,8 @@ namespace BizHawk
}
}
public bool BlazingFast = false;
protected ListViewItem GetItem(int idx) {
ListViewItem item = null;
if(QueryItem != null) {