dos 窗口 怎样才可以把一个 cmd.exe 打开的窗口 放在我的子窗体内? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考以下就可以做到://将查找对话框放入自己的窗口中procedure TForm1.FormCreate(Sender: TObject);//只能在FormCreate事件中实现var h:thandle; rec:trect;begin shellexecute(form1.Handle,'find','c:\',nil,nil,sw_shownormal);//改为打开你的窗口或者删除 sleep(300); h:=findwindow(nil,'搜索结果');//改为你的窗口标题 GetWindowRect(h,rec); SetWindowPos(h,HWND_TOP,0,-5-(GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYBORDER)),ScrollBox1.Width,ScrollBox1.Height,SWP_NOSIZE or SWP_SHOWWINDOW); windows.SetParent(h,ScrollBox1.Handle); ScrollBox1.HorzScrollBar.Range :=rec.Right -rec.Left ; ScrollBox1.VertScrollBar.Range :=rec.Bottom -rec.Top ;end; 类的创建 存储过程的错误 ReportBuilder 的Tppreport控件问题请教 求一段自定义打印设置的代码 delphi下用什么3d游戏引擎好?glscene不大好用。 我要把画布上的图形拷贝至图片里,这样有什不妥? BDE+paradox打包问题 85分求购两个文件操作函数,即刻给分!!!!!! 如何得到系统托盘中图标所在的应用程序的窗口的hwnd,及图标数目 怎么才能让ToolBar中的按钮间隔开? 多表联合统计!诚征高手解答。 怎样在报表中金额中加Y如30.00Y
procedure TForm1.FormCreate(Sender: TObject);//只能在FormCreate事件中实现
var
h:thandle;
rec:trect;
begin
shellexecute(form1.Handle,'find','c:\',nil,nil,sw_shownormal);//改为打开你的窗口或者删除
sleep(300);
h:=findwindow(nil,'搜索结果');//改为你的窗口标题
GetWindowRect(h,rec);
SetWindowPos(h,HWND_TOP,0,-5-(GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYBORDER)),ScrollBox1.Width,ScrollBox1.Height,SWP_NOSIZE or SWP_SHOWWINDOW);
windows.SetParent(h,ScrollBox1.Handle);
ScrollBox1.HorzScrollBar.Range :=rec.Right -rec.Left ;
ScrollBox1.VertScrollBar.Range :=rec.Bottom -rec.Top ;
end;