You can pin the window of any application inside the MVD application. See an example for a calculator. It can also be used for the browser.
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var
h: integer;
Max: integer;
begin
// run calculator
OpenFile('calc.exe');
// finding window's calculator
h := 0;
Max := 20;
while (h = 0) and (Max > 0) do
begin
h := FindWindow('', 'Calculator'); // find window using caption
Dec(Max);
Sleep(50);
end;
// move the calculator to the Form1
if h <> 0 then
begin
SetWindowPos( h, 0, 10, 10, 0, 0, SWP_NOSIZE); // set position x=10, y=10
SetParent( FindWindow('', 'Calculator'), Form1.Handle);
end;
end;
P.S. It's not work on Win10
http://myvisualdatabase.com/forum/viewtopic.php?id=2957
Визуальное программирование:
блог и
телеграм-канал.