1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-05-13 21:46:53 +02:00

Added aNewWindowStyle parameter to TFMXWindowParent.Reparent
Some checks failed
Make / build (ubuntu-latest) (push) Has been cancelled

This commit is contained in:
Salvador Díaz Fau 2025-05-12 11:42:06 +02:00
parent d3f2b48d4c
commit 62857477a6
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ type
/// <summary> /// <summary>
/// Set a new parent for this control. /// Set a new parent for this control.
/// </summary> /// </summary>
procedure Reparent(const aNewParentHandle : {$IFDEF DELPHI18_UP}TWindowHandle{$ELSE}TFmxHandle{$ENDIF}); procedure Reparent(const aNewParentHandle : {$IFDEF DELPHI18_UP}TWindowHandle{$ELSE}TFmxHandle{$ENDIF}; aNewWindowStyle: NativeInt = NativeInt(WS_POPUPWINDOW or WS_CHILDWINDOW));
/// <summary> /// <summary>
/// Updates the size of the child windows created by the browser. /// Updates the size of the child windows created by the browser.
/// </summary> /// </summary>
@ -134,7 +134,7 @@ begin
end; end;
end; end;
procedure TFMXWindowParent.Reparent(const aNewParentHandle : {$IFDEF DELPHI18_UP}TWindowHandle{$ELSE}TFmxHandle{$ENDIF}); procedure TFMXWindowParent.Reparent(const aNewParentHandle : {$IFDEF DELPHI18_UP}TWindowHandle{$ELSE}TFmxHandle{$ENDIF}; aNewWindowStyle: NativeInt);
var var
TempChildHandle, TempParentHandle : HWND; TempChildHandle, TempParentHandle : HWND;
begin begin
@ -149,7 +149,7 @@ begin
if (TempChildHandle <> 0) and (TempParentHandle <> 0) then if (TempChildHandle <> 0) and (TempParentHandle <> 0) then
begin begin
SetWindowLong(TempChildHandle, GWL_STYLE, WS_CHILDWINDOW); SetWindowLong(TempChildHandle, GWL_STYLE, aNewWindowStyle);
WinApi.Windows.SetParent(TempChildHandle, TempParentHandle); WinApi.Windows.SetParent(TempChildHandle, TempParentHandle);
end; end;
end; end;

View File

@ -2,7 +2,7 @@
"UpdateLazPackages" : [ "UpdateLazPackages" : [
{ {
"ForceNotify" : true, "ForceNotify" : true,
"InternalVersion" : 733, "InternalVersion" : 734,
"Name" : "cef4delphi_lazarus.lpk", "Name" : "cef4delphi_lazarus.lpk",
"Version" : "136.1.4" "Version" : "136.1.4"
} }