summaryrefslogtreecommitdiff
path: root/wintable/new/api.h
blob: f066a192bfa52ffb83a19886bbe266170cbfacdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 8 december 2014

HANDLER(apiHandlers)
{
	switch (uMsg) {
	case WM_SETFONT:
		// don't free the old font; see http://blogs.msdn.com/b/oldnewthing/archive/2008/09/12/8945692.aspx
		t->font = (HFONT) wParam;
		SendMessageW(t->header, WM_SETFONT, wParam, lParam);
		// TODO reposition header?
		// TODO how to properly handle LOWORD(lParam) != FALSE?
		*lResult = 0;
		return TRUE;
	case WM_GETFONT:
		*lResult = (LRESULT) (t->font);
		return TRUE;
	case tableAddColumn:
		// TODO
		return FALSE;
	}
	return FALSE;
}