Bläddra i källkod

Fix wParam not zero.

Martijn Laan 2 veckor sedan
förälder
incheckning
2dfb9834c1
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Components/BidiCtrls.pas

+ 1 - 1
Components/BidiCtrls.pas

@@ -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