|
@@ -61,7 +61,7 @@ begin
|
|
var IdealSize: TSize;
|
|
var IdealSize: TSize;
|
|
IdealSize.cx := Width;
|
|
IdealSize.cx := Width;
|
|
IdealSize.cy := 0; { Not needed according to docs and tests, but clearing anyway }
|
|
IdealSize.cy := 0; { Not needed according to docs and tests, but clearing anyway }
|
|
- if SendMessage(Handle, BCM_GETIDEALSIZE, Width, LPARAM(@IdealSize)) <> 0 then begin
|
|
|
|
|
|
+ if SendMessage(Handle, BCM_GETIDEALSIZE, 0, LPARAM(@IdealSize)) <> 0 then begin
|
|
Height := IdealSize.cy;
|
|
Height := IdealSize.cy;
|
|
Result := Height - OldHeight;
|
|
Result := Height - OldHeight;
|
|
end else
|
|
end else
|