I developed a simple project where I embebed an IE into a panel, it is ok so far.
I have two problems with my small project:
1) left and top of my IE created into a panel, I can't set it to left=0 and top = 0
2) I would like to have my IE created into my panel without any borderstyle. For this, I tried that command:
L_STYLE) and (not WS_CAPTION) or WS_THICKFRAME);
But I haven't had any success yet.
the project has only one unit.pas and you can open it in any Delphi version. I use Delphi 2007.
After opening the project, click on the button Browse, it will create a IE into panel1, there is another button named "Mostra Pn" where a panel3 will hide or not and the IE in panel1 should resize automatically.
procedure TForm1.BitBtn1Click(Sender: TObject);
ie := CreateOleObject('InternetExplorer.Application');
ie.MenuBar := False;
ie.AddressBar := False;
ie.Resizable := false;
ie.StatusBar := True;
ie.ToolBar := 0;
ie.top := 0;
ie.left := 0;
ie.Width := panel1.Width;
ie.Height := panel1.Height+27;
ie.visible := True;
// SetWindowLong(ie.Handle,GWL_STYLE, GetWindowLong(ie.Handle,GWL_STYLE) and (not WS_CAPTION) or WS_THICKFRAME); // I tried here to borderstyle=none of my IE
I thank a lot any help