CtrlLib: ArrayCtrl::SetLineColor

git-svn-id: svn://ultimatepp.org/upp/trunk@10549 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-12-15 12:42:19 +00:00
parent ae625d2eed
commit 567f5d09ac
3 changed files with 16 additions and 1 deletions

View file

@ -631,6 +631,11 @@ void ArrayCtrl::SetLineCy(int i, int cy)
}
}
void ArrayCtrl::SetLineColor(int i, Color c)
{
array.At(i).paper = c;
}
int ArrayCtrl::GetTotalCy() const
{
int i = GetCount();
@ -802,6 +807,8 @@ const Display& ArrayCtrl::GetCellInfo(int i, int j, bool f0,
bg = i & 1 ? evenpaper : oddpaper;
if(nobg)
bg = Null;
if(i < array.GetCount() && !IsNull(array[i].paper))
bg = array[i].paper;
fg = i & 1 ? evenink : oddink;
if((st & Display::SELECT) ||
!multiselect && (st & Display::CURSOR) && !nocursor ||