關于delphi中窗口顯示位置的問題﹗我怎樣使窗口顯示在一個panel中﹐象MDI那休養﹖﹖ Same the topic 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看一看delphi6\demo\docking哪里有非常漂亮的关于停靠的方法。 呵呵,摩托曾经把一个其他的程序窗体当作自己的子窗体~~~var h:thandle; rec:trect;begin shellexecute(handle,'find','',nil,nil,SW_hide); //奇怪find时sw_hide不起作用! repeat h:=findwindow( nil,'搜索结果'); if h<>0 then showwindow(h,SW_HIDE); until h<>0; windows.SetParent(h,ScrollBox1.Handle); GetWindowRect(h,rec); SetWindowPos(h,HWND_TOP,0,-5-(GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYBORDER)),ScrollBox1.Width,ScrollBox1.Height,SWP_NOSIZE or SWP_SHOWWINDOW); ScrollBox1.HorzScrollBar.Range :=rec.Right -rec.Left ; ScrollBox1.VertScrollBar.Range :=rec.Bottom -rec.Top ; 请参考:http://expert.csdn.net/Expert/topic/1101/1101062.xml?temp=.7426264 下载后文件的图标变了 关于ODBC,急,,,,,,,,, 求助:BSTR类型的字符串(WideString)中如何查找子串?或者给出一个长字符串(超过255字符)的解决方案?谢谢!!! 与串口相关,但不是串口问题,不好说,内详 如何使窗体最小化的时候收缩在windows的托盘里头!? 求教:怎样将excel,.db,.txt文件导入access数据库 高分:在窗口中使用鼠标右击,要找到相应控件名 使用NMsmtp发送邮件失败? 做过网站的朋友进来! 控制IDE//zswang dephi 7很好啊!!怎么有人说不好呢? 救急
哪里有非常漂亮的关于停靠的方法。
h:thandle;
rec:trect;
begin
shellexecute(handle,'find','',nil,nil,SW_hide);
//奇怪find时sw_hide不起作用! repeat
h:=findwindow( nil,'搜索结果');
if h<>0 then
showwindow(h,SW_HIDE);
until h<>0;
windows.SetParent(h,ScrollBox1.Handle);
GetWindowRect(h,rec);
SetWindowPos(h,HWND_TOP,0,-5-(GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYBORDER)),ScrollBox1.Width,ScrollBox1.Height,SWP_NOSIZE or SWP_SHOWWINDOW); ScrollBox1.HorzScrollBar.Range :=rec.Right -rec.Left ;
ScrollBox1.VertScrollBar.Range :=rec.Bottom -rec.Top ;
请参考:
http://expert.csdn.net/Expert/topic/1101/1101062.xml?temp=.7426264