mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 12:23:51 +02:00
win32: use the same approach to set dropdowncount when theme is enabled or not. Fix issue #21232
git-svn-id: trunk@35189 -
This commit is contained in:
parent
e0fb084147
commit
c447cf7d03
@ -952,16 +952,9 @@ class procedure TWin32WSCustomComboBox.SetDropDownCount(
|
||||
var
|
||||
StringList: TWin32ComboBoxStringList;
|
||||
begin
|
||||
if ThemeServices.ThemesEnabled then
|
||||
// CB_SETMINVISIBLE is available,
|
||||
// if the application specifies comctl32.dll version 6 in the manifest
|
||||
SendMessage(ACustomComboBox.Handle, CB_SETMINVISIBLE, NewCount, 0)
|
||||
else
|
||||
begin
|
||||
StringList := GetStringList(ACustomComboBox);
|
||||
if StringList <> nil then
|
||||
StringList.DropDownCount := NewCount;
|
||||
end;
|
||||
StringList := GetStringList(ACustomComboBox);
|
||||
if StringList <> nil then
|
||||
StringList.DropDownCount := NewCount;
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomComboBox.SetDroppedDown(
|
||||
|
Loading…
Reference in New Issue
Block a user