andlabs-ui/wintable/resize.h

21 lines
441 B
C
Raw Normal View History

// 7 december 2014
// TODO why doesn't this trigger on first show?
// TODO see if there's anything not metaphor related in the last bits of the scrollbar series
2014-12-07 19:48:32 -06:00
// TODO rename this to boot
// TODO merge with update.h?
HANDLER(resizeHandler)
{
WINDOWPOS *wp;
if (uMsg != WM_WINDOWPOSCHANGED)
return FALSE;
wp = (WINDOWPOS *) lParam;
if ((wp->flags & SWP_NOSIZE) != 0)
return FALSE;
update(t, TRUE);
*lResult = 0;
return TRUE;
}