Started writing the checkbox drawing code. Just a red box again for now.

This commit is contained in:
Pietro Gagliardi 2014-12-20 20:12:08 -05:00
parent 34d3771f77
commit 7713c91387
1 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,13 @@ static void drawCell(struct table *t, HDC dc, struct drawCellParams *p)
n = wsprintf(msg, L"(%d,%d)", p->row, p->column);
if (DrawTextExW(dc, msg, n, &r, DT_END_ELLIPSIS | DT_LEFT | DT_NOPREFIX | DT_SINGLELINE, NULL) == 0)
panic("error drawing Table cell text");
break;
case tableColumnCheckbox:
r.right = r.left + t->checkboxWidth;
r.bottom = r.top + t->checkboxHeight;
SetDCBrushColor(dc, RGB(255, 0, 0));
FillRect(dc, &r, GetStockObject(DC_BRUSH));
break;
}
}