From e020da8dba25d92ba95d06c8b975cf2cd78b8fb1 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 27 Jun 2011 05:22:12 +0000 Subject: [PATCH] add a little tweak to VirtualListView which may be necessary if things ever get rough --- BizHawk.Util/VirtualListView.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Util/VirtualListView.cs b/BizHawk.Util/VirtualListView.cs index f73478e0c5..c8118e68f1 100644 --- a/BizHawk.Util/VirtualListView.cs +++ b/BizHawk.Util/VirtualListView.cs @@ -538,6 +538,11 @@ namespace BizHawk break; } break; + //it is conceivable that you will need this. you wouldnt be able to conceive of why, though. obscure message loop flakiness when exceptions are thrown from the message loop... + //case (int)WindowsMessage.WM_SETFOCUS: + // if(SelectedIndices.Count>0 && SelectedIndices[0] >= VirtualListSize) + // messageProcessed = true; + // break; default: break; }