LCL: Fix unchangeable Combobox.DropDownCount when Style = csDropDownList. Issue #37670.

git-svn-id: trunk@63856 -
This commit is contained in:
wp 2020-09-01 10:35:55 +00:00
parent 087020bee2
commit afa0f73049

View File

@ -1182,6 +1182,9 @@ begin
begin
//Use CB_SETMINVISIBLE in vista or above
SendMessage(ACustomComboBox.Handle, CB_SETMINVISIBLE, NewCount, 0);
//Issue #37670: Fix DropDownCount not changing when Style=csDropDownList
if not (ACustomComboBox.Style in [csSimple, csDropDown, csOwnerDrawEditableFixed]) then
RecreateWnd(ACustomCombobox);
end
else
begin