Thema: Delphi InternetExplorer OLE

Einzelnen Beitrag anzeigen

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