[WINESYNC][COMCTL32] Fix large height for ComboBox when CBS_NOINTEGRALHEIGHT is specified (#7940)

CORE-19833

wine commit id d551564f1b by Orin Varley <ovarley@codeweavers.com>

comctl32: Make CBS_NOINTEGRALHEIGHT only set minimum combobox height.

When the combobox height is to be set by the application (as the CBS_NOINTEGRALHEIGHT style is on),
and when a large size is specified but only a small number of items in the list, the height of the
combobox should be set by the number of items rather than the size specified to avoid empty lines.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57360
This commit is contained in:
Mohammad Amin Mollazadeh 2025-05-04 18:29:54 +03:30 committed by GitHub
parent 946f17e93d
commit 3e342246d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -977,7 +977,11 @@ static void CBDropDown( LPHEADCOMBO lphc )
if (lphc->dwStyle & CBS_NOINTEGRALHEIGHT)
{
#ifdef __REACTOS__
nDroppedHeight = min(nItems * nIHeight + COMBO_YBORDERSIZE(), nDroppedHeight - 1);
#else
nDroppedHeight -= 1;
#endif
}
else
{