win32: remove last constraint code for csSimple combobox

git-svn-id: trunk@14243 -
This commit is contained in:
paul 2008-02-25 08:53:42 +00:00
parent 3d629400eb
commit 19820828de

View File

@ -785,9 +785,12 @@ var
StringList: TWin32ComboBoxStringList;
begin
WinHandle := AWinControl.Handle;
StringList := TWin32ComboBoxStringList(GetWindowInfo(WinHandle)^.List);
if StringList <> nil then
Height := StringList.ComboHeight;
if TCustomComboBox(AWinControl).Style <> csSimple then
begin
StringList := TWin32ComboBoxStringList(GetWindowInfo(WinHandle)^.List);
if StringList <> nil then
Height := StringList.ComboHeight;
end;
end;
class procedure TWin32WSCustomComboBox.GetPreferredSize(