1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-01-13 10:22:04 +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; function TChromiumWindow.GetChildWindowHandle : THandle;
begin begin
if (FChromium <> nil) then Result := 0;
Result := FChromium.BrowserHandle
else if (FChromium <> nil) then Result := FChromium.WindowHandle;
Result := inherited GetChildWindowHandle;
if (Result = 0) then Result := inherited GetChildWindowHandle;
end; end;
function TChromiumWindow.GetBrowserInitialized : boolean; function TChromiumWindow.GetBrowserInitialized : boolean;