summaryrefslogtreecommitdiff
path: root/wintable/new/draw.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-12-08 16:23:55 -0500
committerPietro Gagliardi <[email protected]>2014-12-08 16:23:55 -0500
commit59054c8932ef3eb75f3b676eee1674219ee150f6 (patch)
treef221881ad6ca620d6a990e19f20c8488965ff816 /wintable/new/draw.h
parent6271fc941aecccbd61b8a2ed68139148f1040225 (diff)
Readded rowHeight(). Also tested font helper functions.
Diffstat (limited to 'wintable/new/draw.h')
-rw-r--r--wintable/new/draw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wintable/new/draw.h b/wintable/new/draw.h
index d7c0038..55ffd3c 100644
--- a/wintable/new/draw.h
+++ b/wintable/new/draw.h
@@ -5,6 +5,7 @@ static void draw(struct table *t, HDC dc, RECT cliprect, RECT client)
LRESULT i, n;
RECT r;
int x = 0;
+ HFONT prevfont, newfont;
n = SendMessageW(t->header, HDM_GETITEMCOUNT, 0, 0);
for (i = 0; i < n; i++) {
@@ -14,6 +15,10 @@ static void draw(struct table *t, HDC dc, RECT cliprect, RECT client)
FillRect(dc, &r, GetSysColorBrush(x));
x++;
}
+
+ prevfont = selectFont(t, dc, &newfont);
+ TextOutW(dc, 100, 100, L"come on", 7);
+ deselectFont(dc, prevfont, newfont);
}
HANDLER(drawHandlers)