Вниз
Скачать: CL | DM;

как заставить чужой программы работат внутри своей формы)))   Найти похожие ветки 

 
amamed_3071   (2002-01-19 15:05) [0]

выполните Calc.exe b проверте)))
procedure TForm1.Button1Click(Sender: TObject);
Function SetProccesWindow(Wtitle:Pchar):Integer;
Var x:HWnd;
Begin
SetProccesWindow:=0;
x:=FindWindow(Nil,WTitle);
if x>0 then
Windows.SetParent(X,Handle)
else
SetProccesWindow:=-1;
End;
begin
SetProccesWindow("Calculator");
end;


 
nil ©   (2002-01-19 20:01) [1]

Why don"t you use Delphi standards?


procedure TForm1.Button1Click(Sender: TObject);
function SetProccesWindow(Wtitle:Pchar): THandle;
begin
Result := FindWindow(Nil,WTitle);
if Result > 0 then
Windows.SetParent( Result,Handle);
end;
var
Parenth: THandle;
begin
Parenth := SetProccesWindow("Calculator");
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.006 c
3-46273
Lord Vader
2002-03-23 04:59
2002.04.15
TTable в Run-Time


3-46252
visa
2002-03-25 17:20
2002.04.15
halcyon - quickrep


14-46498
Бомж
2002-03-06 20:20
2002.04.15
Надоело добираться полтора часа до работы!


3-46259
MixVictor
2002-03-25 20:37
2002.04.15
Бд на машине без Delphi


1-46404
UnDISCOvery
2002-04-02 13:09
2002.04.15
Интерактивный ReSize ! Как ???




   Наверх