AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

InternetExplorer OLE

Ein Thema von API · begonnen am 22. Aug 2006 · letzter Beitrag vom 17. Nov 2006
Antwort Antwort
Seite 3 von 3     123   
API

Registriert seit: 18. Apr 2004
637 Beiträge
 
#21

Re: InternetExplorer OLE

  Alt 17. Nov 2006, 10:07
Zitat von ACE-ppc:
war ja klar das da keine Antwort kommt .. nachdem er aller 5 Minuten nen neuen Thread erstellt hat.
Sorry, hab's übersehen. Hilft aber leider auch nicht.
  Mit Zitat antworten Zitat
Benutzerbild von Lun
Lun

Registriert seit: 4. Feb 2006
122 Beiträge
 
Delphi 2005 Professional
 
#22

Re: InternetExplorer OLE

  Alt 17. Nov 2006, 10:24
@API

Also bei mir funtzt es:

Code:

ieo := CreateOleObject('InternetExplorer.Application');
              BringWindowToTop(ieo.HWND);
              ieo.navigate(URL);
              ieo.visible := false;
Ich starte den I-net Explorer aus meiner Anwendung. Ohne das BringWindowToTop(ieo.HWND); läuft der IE hinter meiner
Anwendung. Mit dem BringWindowToTop(ieo.HWND); springt der IE vor die Anwendung.

Vielleicht verstehe ich auch den Begriff "es flasht nur" falsch.

greetz Lun
  Mit Zitat antworten Zitat
shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#23

Re: InternetExplorer OLE

  Alt 17. Nov 2006, 12:00
Zitat von Lun:
Vielleicht verstehe ich auch den Begriff "es flasht nur" falsch.
Bei älteren Windows Versionen (win 95/98 ...) konnte jeder Prozess sich problemlos in den Vordergrund
drängen nach dem Motto: "ICH bin wichtig, ich will ganz vorne sein"
Jedes Prozess konnte also den Benutzer bevormunden, indem es sich in den Vordergrund drängte.
MS hat das Problem erkannt und ab Win2000 blinkt (=flashen) eine Anwendung, die etwas will, nur in der Taskleiste.
Der Benutzer muss den blinkenden Prozess anklicken, damit dieser in den Vordergrund kommt.
Man könnte es ja mal mit SetForegroundWindow versuchen:

Zitat:
the SetForegroundWindow function puts the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user.
In a preemptive multitasking environment, you should generally let the user control which window is the foreground window. However, an application can call SetForegroundWindow if it wants to put itself into the foreground to display a critical error or information that requires the user's immediate attention. A good example is a debugger when it hits a breakpoint.
Andreas
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 3 von 3     123   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:02 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz