Revert "user32/combo: Set listbox popup height correctly and add tests.".
This partly reverts commit f7f7b89e2e
(tests are left in place).
Any application that currently uses "Microsoft.Windows.Common-Controls
v6" via a Manifest has the possibility of breaking comboboxes. Using
this version of the control ensures that dropdown for comboboxes, will
show multiple items, regardless of its height in the resource.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2b622aab27
commit
f0fc034997
|
@ -1044,6 +1044,14 @@ static void CBDropDown( LPHEADCOMBO lphc )
|
|||
|
||||
if (nHeight < nDroppedHeight - COMBO_YBORDERSIZE())
|
||||
nDroppedHeight = nHeight + COMBO_YBORDERSIZE();
|
||||
|
||||
if (nDroppedHeight < nHeight)
|
||||
{
|
||||
if (nItems < 5)
|
||||
nDroppedHeight = (nItems+1)*nIHeight;
|
||||
else if (nDroppedHeight < 6*nIHeight)
|
||||
nDroppedHeight = 6*nIHeight;
|
||||
}
|
||||
}
|
||||
|
||||
r.left = rect.left;
|
||||
|
|
|
@ -718,25 +718,25 @@ static void test_listbox_size(DWORD style)
|
|||
int height_combo;
|
||||
BOOL todo;
|
||||
} info_height[] = {
|
||||
{2, 24},
|
||||
{2, 24, TRUE},
|
||||
{2, 41, TRUE},
|
||||
{2, 42},
|
||||
{2, 50},
|
||||
{2, 42, TRUE},
|
||||
{2, 50, TRUE},
|
||||
{2, 60},
|
||||
{2, 80},
|
||||
{2, 89},
|
||||
{2, 90},
|
||||
{2, 100},
|
||||
|
||||
{10, 24},
|
||||
{10, 24, TRUE},
|
||||
{10, 41, TRUE},
|
||||
{10, 42},
|
||||
{10, 50},
|
||||
{10, 60},
|
||||
{10, 80},
|
||||
{10, 42, TRUE},
|
||||
{10, 50, TRUE},
|
||||
{10, 60, TRUE},
|
||||
{10, 80, TRUE},
|
||||
{10, 89, TRUE},
|
||||
{10, 90},
|
||||
{10, 100},
|
||||
{10, 90, TRUE},
|
||||
{10, 100, TRUE},
|
||||
};
|
||||
|
||||
pGetComboBoxInfo = (void *)GetProcAddress(GetModuleHandleA("user32.dll"), "GetComboBoxInfo");
|
||||
|
|
Loading…
Reference in New Issue