diff options
| author | Pietro Gagliardi <[email protected]> | 2014-12-20 20:12:08 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-12-20 20:12:54 -0500 |
| commit | 7713c913875ebea0af7cfd21840981a94dab654d (patch) | |
| tree | 20c85025ed71c21e607dbcbc17d49fd227ac6759 | |
| parent | 34d3771f77f8f6d695e0e0ff4bcf3d80695f461d (diff) | |
Started writing the checkbox drawing code. Just a red box again for now.
| -rw-r--r-- | wintable/new/draw.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wintable/new/draw.h b/wintable/new/draw.h index 3d20383..0659f54 100644 --- a/wintable/new/draw.h +++ b/wintable/new/draw.h @@ -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; } } |
