Главная страница
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.008 c
1-46303
andrew_f
2002-04-02 18:29
2002.04.15
Internal error: U704


1-46418
Nestor
2002-04-02 18:04
2002.04.15
InstallShield


3-46249
fomstas
2002-03-22 09:40
2002.04.15
Не могу бороться с ошибкой


1-46384
VBill
2002-04-01 13:11
2002.04.15
Как определить какая прога


1-46346
ArmArt
2002-04-03 23:34
2002.04.15
Как сделать Экспорт Quick Report в Excel