mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
revert wrong commits of revision 8804 #3c90c0bcc8
git-svn-id: trunk@8805 -
This commit is contained in:
parent
3c90c0bcc8
commit
599bce7c87
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user