1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-01-03 10:15:38 +02:00

TChromiumWindow.GetChildWindowHandle must return TChromium.WindowHandle

This commit is contained in:
Salvador Díaz Fau 2018-06-27 12:02:29 +02:00
parent 55aa9965df
commit dedb740a03

View File

@ -137,10 +137,11 @@ end;
function TChromiumWindow.GetChildWindowHandle : THandle;
begin
if (FChromium <> nil) then
Result := FChromium.BrowserHandle
else
Result := inherited GetChildWindowHandle;
Result := 0;
if (FChromium <> nil) then Result := FChromium.WindowHandle;
if (Result = 0) then Result := inherited GetChildWindowHandle;
end;
function TChromiumWindow.GetBrowserInitialized : boolean;