Explorar o código

Fix wParam not zero.

Martijn Laan hai 2 semanas
pai
achega
2dfb9834c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Components/BidiCtrls.pas

+ 1 - 1
Components/BidiCtrls.pas

@@ -61,7 +61,7 @@ begin
   var IdealSize: TSize;
   IdealSize.cx := Width;
   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;
     Result := Height - OldHeight;
   end else