Confirmed that tabs are taken into account with TCM_ADJUSTRECT on Windows.

This commit is contained in:
Pietro Gagliardi 2015-05-03 17:21:48 -04:00
parent aa568e51cf
commit 23cfcc8c6d
1 changed files with 1 additions and 1 deletions

View File

@ -81,10 +81,10 @@ static void preferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *
}
}
// otherwise just use the rect [0 0 0 0]
// the following will take the tabs themselves into account
SendMessageW(t->hwnd, TCM_ADJUSTRECT, (WPARAM) TRUE, (LPARAM) (&r));
*width = r.right - r.left;
*height = r.bottom - r.top;
// TODO does ths include the tabs themselves on windows? they do on wine
}
// common code for resizes