奔
奔腾的堃
Unregistered / Unconfirmed
GUEST, unregistred user!
动态创建了一个webbrowser之后 没有办法调整他的align属性 怎么回事啊?
帮帮忙阿
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
newform:tform;
newbrowser:twebbrowser;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var formhandle:hwnd;
begin
newform:=tform.Create(application);
formhandle:=newform.Handle ;
newbrowser:=twebbrowser.Create(application);
newbrowser.Parentwindow :=formhandle;
newbrowser.Align :=alclient;
newform.Show;
end;
end.
帮帮忙阿
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
newform:tform;
newbrowser:twebbrowser;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var formhandle:hwnd;
begin
newform:=tform.Create(application);
formhandle:=newform.Handle ;
newbrowser:=twebbrowser.Create(application);
newbrowser.Parentwindow :=formhandle;
newbrowser.Align :=alclient;
newform.Show;
end;
end.