W
willyxia
Unregistered / Unconfirmed
GUEST, unregistred user!
例如:
Procedure TForm1.Button1Click(Sender: TObject);
function EnumChildWindowsProc(h: Integer): Boolean; stdcall;
begin
...
end;
begin
h := findWindow('TFormTest',nil);
EnumChildWindows(h,@EnumChildWindowsProc,Integer(@h));
//showImage在Form1上,下面一句就会报错
ShowImage.Picture.BitMap.LoadFromFile('c:/333.bmp');
end;
Procedure TForm1.Button1Click(Sender: TObject);
function EnumChildWindowsProc(h: Integer): Boolean; stdcall;
begin
...
end;
begin
h := findWindow('TFormTest',nil);
EnumChildWindows(h,@EnumChildWindowsProc,Integer(@h));
//showImage在Form1上,下面一句就会报错
ShowImage.Picture.BitMap.LoadFromFile('c:/333.bmp');
end;