我尝试用self.Width和self.Height来进行调整,无效?很急,请各位高手不
吝帮帮在下,先谢了!
吝帮帮在下,先谢了!
解决方案 »
- 有哪位大侠给提供点delphi7中用ado的一些代码或文档哦,谢过了哦
- 如何使窗体不出现在下边的任务栏上?
- 如何区分windows 2000 的各个版本
- 如何取得dbgrid选中的cell的rect坐标?不是在dbgrid的事件中取。
- RichEdit控件有粘贴字数限制?
- 版主为什么审核通过这样的FAQ?
- 采用SQL SERVER 2000做数据库,当开发完成后,除了打包自己写的程序以外,又想给用户提供一些样例数据库(包括这个数据库的存储过程、表
- 如何选中指定的控件
- 请问今年的程序员考试是什么时候?
- 解释这三个的区别:new、getmem、Allocmem
- 各位高手如何学好Delphi呀,请指教
- 为什么把ComboBoxEx的Style设为csExSimple时不能进行AutoComplete自动搜索
<body leftmargin=2 topmargin=2>
<script language="JavaScript">
<!--
document.write("<OBJECT classid='clsid:75C57EE9-675E-4BD9-8A56-8353C091C0D5'")
document.write(" codebase='/CAACHDC/CAACHDC.inf#Version=1,0,3,0'")
document.write(" width=")
document.write(screen.width/800*776)
document.write(" height=")
document.write(screen.height/600*500)
document.write(" align=center")
document.write(" hspace=0")
document.write(" vspace=0>")
document.write(" </OBJECT>")
-->
</script>
</body>替换body中的相应代码,我的效果是满屏(IE)显示,并且随分辨率的不同自动满屏
cs:IOLeClientSite;
sp:IServiceProvider;
ie:IWebbrowser2;加timer控件procedure TActiveFormX.Timer1Timer(Sender: TObject);
begin
cs := ActiveFormControl.ClientSite;
sp := cs as IServiceProvider;
sp.QueryService(IWebbrowserApp, IWebbrowser2, ie); //STYLE:=GETWINDOWLONG(IE.HWND,GWL_STYLE);
//STYLE:=STYLE AND NOT WS_SYSMENU;
//SETWINDOWLONG(IE.HWND,GWL_STYLE,STYLE);
//IE.MenuBar:=FALSE; TIMER1.Enabled:=FALSE;
end;设置宽度:procedure TActiveFormX.Button7Click(Sender: TObject);
var
DoC: IHTMLDocument2;
Txt: IHTMLTxtRange;
ocxcollection: IHTMLElementCollection;
ocx:IHTMLElement;begin
Doc := ie.Document as IHTMLDocument2;
{doc.execCommand('selectall',true,'');
doc.execCommand('BackColor',false,'BLUE'); Txt :=Doc.selection.createRange as IHTMLTxtRange;
Txt.findText('a',0,0);
Txt.select;}
// ocxcollection:=doc.applets ;
ocx:=ocxcollection.item('aaa',0) as IHTMLElement;
ocx.style.width:=strtoint(edit1.Text);
//self.color:=doc.bgColor;
//doc.parentWindow.resizeTo(400,400);
//DOC.forms可用作操作HTML表担中的元素
end;全屏
ie.FullScreen:=true;
关闭
IE.Quit;
恢复
ie.FullScreen:=false;