Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi InternetExplorer OLE (https://www.delphipraxis.net/75601-internetexplorer-ole.html)

API 17. Nov 2006 10:07

Re: InternetExplorer OLE
 
Zitat:

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.

Lun 17. Nov 2006 10:24

Re: InternetExplorer OLE
 
@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

shmia 17. Nov 2006 12:00

Re: InternetExplorer OLE
 
Zitat:

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.


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:07 Uhr.
Seite 3 von 3     123   

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