Ram Watch - refix background color on separators

This commit is contained in:
andres.delikat 2011-02-20 03:50:08 +00:00
parent 643efb2caa
commit a17c0270c2
1 changed files with 7 additions and 1 deletions

View File

@ -80,12 +80,18 @@ namespace BizHawk.MultiClient
{
InitializeComponent();
WatchListView.QueryItemText += new QueryItemTextHandler(WatchListView_QueryItemText);
WatchListView.QueryItemBkColor += new QueryItemBkColorHandler(WatchListView_QueryItemBkColor);
WatchListView.VirtualMode = true;
}
private void WatchListView_QueryItemBkColor(int index, int column, ref Color color)
{
if (watchList[index].type == atype.SEPARATOR)
color = this.BackColor;
}
void WatchListView_QueryItemText(int index, int column, out string text)
{
//TODO: separator background color
text = "";
if (column == 0)
{