W
wjlsnet
Unregistered / Unconfirmed
GUEST, unregistred user!
如:
procedure TForm1.Button1Click(Sender: TObject);
var
h : DWord ;
begin
h := TForm(Sender).Handle ;
ShowMessage(TForm(FindControl(h)).Caption) ; //这儿要得到 Form1.Caption ,怎么处理 ?
//不用 Self 等直接找Form1的方式,间接从Button1 来找(Button1.Parent = Form1)
end;
谢谢
procedure TForm1.Button1Click(Sender: TObject);
var
h : DWord ;
begin
h := TForm(Sender).Handle ;
ShowMessage(TForm(FindControl(h)).Caption) ; //这儿要得到 Form1.Caption ,怎么处理 ?
//不用 Self 等直接找Form1的方式,间接从Button1 来找(Button1.Parent = Form1)
end;
谢谢