2014-12-08 14:04:43 -06:00
|
|
|
// 8 december 2014
|
|
|
|
|
|
|
|
HANDLER(apiHandlers)
|
|
|
|
{
|
|
|
|
switch (uMsg) {
|
|
|
|
case WM_SETFONT:
|
2014-12-08 14:11:42 -06:00
|
|
|
// don't free the old font; see http://blogs.msdn.com/b/oldnewthing/archive/2008/09/12/8945692.aspx
|
2014-12-08 14:04:43 -06:00
|
|
|
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;
|
|
|
|
}
|