mirror of
https://github.com/reactos/wine.git
synced 2025-02-24 15:01:41 +00:00
It's not just height that can be set to the default by passing zero to
TCM_SETITEMSIZE, but also width.
This commit is contained in:
parent
e9d937e3d4
commit
6b2d22a0f6
@ -2537,8 +2537,8 @@ TAB_SetItemSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||
if ((lStyle & TCS_FIXEDWIDTH) || (lStyle & TCS_OWNERDRAWFIXED))
|
||||
{
|
||||
lResult = MAKELONG(infoPtr->tabWidth, infoPtr->tabHeight);
|
||||
infoPtr->tabWidth = (INT)LOWORD(lParam);
|
||||
/* If requested Height is 0 this means that program wants to use default. */
|
||||
/* UNDOCUMENTED: If requested Width or Height is 0 this means that program wants to use default. */
|
||||
if (LOWORD(lParam)) infoPtr->tabWidth = (INT)LOWORD(lParam);
|
||||
if (HIWORD(lParam)) infoPtr->tabHeight = (INT)HIWORD(lParam);
|
||||
TRACE("was h=%d,w=%d, now h=%d,w=%d\n",
|
||||
HIWORD(lResult), LOWORD(lResult),
|
||||
|
Loading…
x
Reference in New Issue
Block a user