Visual Basic, C & C++
Delphi 분류

델파이에서 ie 창 띄우기

컨텐츠 정보

본문

uses 
  ComObj;

procedure TForm1.Button1Click(Sender: TObject);
var                                            // uses 구문에 'ComObj'를 추가
  IE: Variant; 
  WinHandle: HWND; 
begin 
  if VarIsEmpty(IE) then 
    begin
      IE := CreateOLEObject('InternetExplorer.Application');
      IE.Visible := True;
      IE.Navigate('http://www.nuno21.net/');
    end
  else
    begin
      WinHandle := FindWindow('IEFrame', nil);

      if 0 <> WinHandle then
        begin
          IE.Navigate('http://www.nuno21.net/');
          SetForeGroundWindow(WinHandle);
        end;
    end;

end;
end.

관련자료

댓글 0
등록된 댓글이 없습니다.

프로그래밍

Today's proverb
나는 침묵하는 연습으로 본래의 나로 돌아가고 싶다. 내 안에 설익은 생각을 담아두고 설익은 느낌도 붙잡아두면서 때를 기다려 무르익히는 연습을 하고 싶다. 다 익은 생각이나 느낌일지라도 더욱 지그시 채워두면서 향기로운 포도주로 발효되기를 기다릴 수 있기를 바란다.《그리운 말 한마디》 (유안진)