Вниз
Скачать: 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
1-46336
Malder
2002-04-03 22:56
2002.04.15
А как очистить канву (TCanvas) ?


4-46552
SuperBizon
2002-02-13 16:38
2002.04.15
Event log


1-46349
KAA
2002-04-01 15:31
2002.04.15
DecisionCube


4-46535
marwin
2002-02-13 13:23
2002.04.15
Помогите!!! Не работает RegSaveKey !!!


7-46521
amamed_3071
2002-01-19 15:05
2002.04.15
как заставить чужой программы работат внутри своей формы)))




   Наверх