Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.15;
Скачать: 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 вся ветка

Текущий архив: 2002.04.15;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.01 c
1-46398
cranium
2002-03-31 00:25
2002.04.15
Генератор случайных числе


1-46360
MAxiMum
2002-04-03 19:42
2002.04.15
Pascal + ООП = ???


1-46336
Malder
2002-04-03 22:56
2002.04.15
А как очистить канву (TCanvas) ?


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


4-46534
Fellomena
2002-02-12 16:10
2002.04.15
MessageBox() and ShowMessage() - some troubles или