Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi FindWindow: Alle Handles filtern (https://www.delphipraxis.net/108859-findwindow-alle-handles-filtern.html)

bitsetter 21. Feb 2008 15:44

Re: FindWindow: Alle Handles filtern
 
Zitat:

Zitat von gizzy
Ich frag mich nur, obwohl ich exakt dies hatte, bei mir dieser Variablen Fehler kam! :gruebel:

Weil du die Funktion EnumWinProc im private Abschnitt des Formulars deklariert hattest.
Zitat:

Zitat von gizzy
Delphi-Quellcode:
...
function TForm1.EnumWinProc(Wnd: THandle; LParam: LongInt): Boolean; stdcall;
...


shmia 21. Feb 2008 15:47

Re: FindWindow: Alle Handles filtern
 
Kennst du schon diese Klasse ?
http://www.delphipraxis.net/internal...ct.php?t=30883
Damit wird das Abfragen der Windows stark vereinfacht.

sirius 21. Feb 2008 15:50

Re: FindWindow: Alle Handles filtern
 
Zitat:

Zitat von gizzy
In VB geht das mit:
Zitat:

nhWnd = GetWindow(nhWnd, GW_HWNDNEXT)
Loop

Das ist nicht VB. Das ist die Win-API. Und natürlich kannst du genauso von Delphi auf diese Windowsfunktion zugreifen. Probiers doch einfach!


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:14 Uhr.
Seite 2 von 2     12   

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