Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi FindWindowEx() ohne Klassenname ? (https://www.delphipraxis.net/34687-findwindowex-ohne-klassenname.html)

Neutral General 26. Nov 2004 15:15


FindWindowEx() ohne Klassenname ?
 
Kann ich Controls finden, wenn ich nur die Caption bzw den Text vom Control hab also so :
Delphi-Quellcode:
ControlHandle := FindWindowEx(Fenster,0,nil,Pchar(Edit2.Text));
Control := FindControl(ControlHandle);
Control.Left := Control.Left + 10; // <- Zugriffsverletzung .. wahrscheinlich wegen falschem Handle
Aber das funktioniert nicht weil ich immer Zugriffsverletzungen bekomme ...

sogar bei :

Delphi-Quellcode:
ControlHandle := FindWindowEx(Fenster,0,'TButton',Pchar(Edit2.Text));
Control := FindControl(ControlHandle);
Control.Left := Control.Left + 10;
gibts die Zugriffsverletzung :gruebel:

Luckie 26. Nov 2004 15:16

Re: FindWindowEx() ohne Klassenname ?
 
Warum noch mal? Geschlossen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:52 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz