GridCtrl: Fixed painting summary row if view's width is greater than total columns' width

git-svn-id: svn://ultimatepp.org/upp/trunk@3271 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2011-03-07 21:30:34 +00:00
parent e08c8bb0bf
commit 0577f1a086

View file

@ -1230,6 +1230,19 @@ void GridCtrl::Paint(Draw &w)
style, stdfont, false, false,
0, -1, 0,
true);
if(summary_row)
{
Color fg = Black;
Color bg = Blend(Blue, White, 240);
w.DrawRect(rx, y, cx, 1, Gray);
if(style & GD::READONLY)
{
bg = Blend(bg, SGray(), 40);
fg = Blend(fg, SGray(), 200);
}
display->Paint(w, rx, y + 1, cx, GD_HDR_HEIGHT - 1, Value(""), style, fg, bg, stdfont, false, 0, 0);
}
}
w.End();