Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Hook statt GetForegroundWindow? (https://www.delphipraxis.net/127867-hook-statt-getforegroundwindow.html)

TBx 20. Jan 2009 13:45


Hook statt GetForegroundWindow?
 
Moin,

über Delphi-Referenz durchsuchenGetForegroundWindow kann ich ja das aktuelle Fenster ermitteln.

Ich möchte aber, dass meine Applikation automatisch benachrichtigt wird, wenn sich das aktive Fenster ändert.

Kann mir jemand sagen, wie das geht? Kann man da eine Systemfunktion hooken oder sich als Listener irgendwo einklinken :?: :?: :?:

Gruß

quendolineDD 20. Jan 2009 14:36

Re: Hook statt GetForegroundWindow?
 
Vielleicht hilft dir das weiter?
MSDN-Library durchsuchenRegisterShellHookWindow

TBx 20. Jan 2009 16:13

Re: Hook statt GetForegroundWindow?
 
Danke!

Über diese Info habe ich mich bis zum TJvShellHook durchgehabgelt.
Damit habe ich genau, was ich benötigt habe.
Gruß
Thomas


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:13 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