小弟初学dephi,想请老大一个问题,希望赐教如何一运行程序便打开一个指定url,指定大小的IE窗口?请详细告之,小弟拜谢了

解决方案 »

  1.   

    shellexecute可以看api帮助,如
    shellexecute(handle,nil,'http://www.ctrdata.com',nil,nil,sw_normal);
    还有要引用shellapi单元
      

  2.   

    uses Comobj, ... ... ;{...}var
      Form1: TForm1;
      IEApp: Variant;{...}procedure TForm1.Button1Click(Sender: TObject);
    begin
     IEApp := CreateOLEObject('InternetExplorer.Application');
     IEApp.visible := true;
     IEApp.Top := 0;
     IEApp.Left := 0;
     IEApp.width := screen.width;  //可改你需要的宽度
     IEApp.height := screen.height;//可改你需要的高度
     IEApp.Navigate('http://www.csdn.net');
    end;