窗体中运行的式外部程序,外部程序界面要显示在窗体中!
解决方案 »
- 怎样取得当前代码的caption
- 问关于CodeGear RAD Studio 2007 最新版本安装后的问题!
- 请问现在用Delphi有什么方法可以对并口进行操作?
- 一个关于数组传递的入门问题.
- 数据连接问题!不是报表设计!!大家帮忙啊!!
- miky(miky):幫我解決Printer.canvas分欄和自動分列問題,高分求助,分不夠可以再加,知道這方面的高手也請進!急!!
- 如何取得Access的字段名?
- 用FastReport可不可以做这样的报表?
- ??? FastReport 报表问题 ???
- 关于ToolBar的自动添加按钮问题
- 如何调用附加在PE文件后的DLL中的一个函数?
- dspack 播放RMVB格式问题特别多
var
h: HWND;
begin
h := WIndows.FindWindow(nil, '计算器');
Windows.SetParent(h, Self.Panel1.Handle);
Windows.MoveWindow(h, 0, 0, 200, 200, true);
end;
procedure TForm1.Button2Click(Sender: TObject);
var hSndrec32: HWND;
begin
hSndrec32 := WIndows.FindWindow(nil, '声音 - 录音机');
if hSndrec32<>0 then
begin
Windows.SetParent(hSndrec32, Panel1.Handle);
Windows.MoveWindow(hSndrec32, 0, 0,panel1.Width,panel1.Height,true);
end
else
showmessage('未发现该程序!');
end;procedure TForm1.FormCreate(Sender: TObject);
begin
shellexecute(handle,'open','sndrec32.exe',nil,nil,sw_shownormal);
end;