![]() |
FindWindowEx() ohne Klassenname ?
Kann ich Controls finden, wenn ich nur die Caption bzw den Text vom Control hab also so :
Delphi-Quellcode:
Aber das funktioniert nicht weil ich immer Zugriffsverletzungen bekomme ...
ControlHandle := FindWindowEx(Fenster,0,nil,Pchar(Edit2.Text));
Control := FindControl(ControlHandle); Control.Left := Control.Left + 10; // <- Zugriffsverletzung .. wahrscheinlich wegen falschem Handle sogar bei :
Delphi-Quellcode:
gibts die Zugriffsverletzung :gruebel:
ControlHandle := FindWindowEx(Fenster,0,'TButton',Pchar(Edit2.Text));
Control := FindControl(ControlHandle); Control.Left := Control.Left + 10; |
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