revert wrong commits of revision 8804 #3c90c0bcc8

git-svn-id: trunk@8805 -
This commit is contained in:
vincents 2006-02-23 09:40:21 +00:00
parent 3c90c0bcc8
commit 599bce7c87
2 changed files with 0 additions and 4 deletions

View File

@ -345,10 +345,7 @@ begin
end;
function TWin32ComboBoxStringList.GetComboHeight: integer;
var
R: TRect;
begin
FEditHeight := SendMessage(FWin32List, CB_GETITEMHEIGHT, -1, 0);
if Count = 0 then
begin
Result := FEditHeight + FItemHeight + 2;

View File

@ -632,7 +632,6 @@ var
StringList: TWin32ComboBoxStringList;
begin
WinHandle := AWinControl.Handle;
SendMessage(WinHandle, CB_SETITEMHEIGHT, -1, Height-6);
StringList := TWin32ComboBoxStringList(GetWindowInfo(WinHandle)^.List);
if StringList <> nil then
Height := StringList.ComboHeight;