Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
Delphi 2009 Professional
|
Re: Anstatt ID den Namen verwenden?
29. Jun 2006, 13:31
Hallo,
probier mal folgendes
Delphi-Quellcode:
function EnumProc(StHandle: HWND; lines: TStrings): boolean; stdcall;
var
buffer, desc: array[0..100] of char; // max. 101 Zeichen
begin
GetClassname(StHandle, buffer, 100); // 100
GetWindowText(StHandle, desc, 100); // 100
lines.add(format('ID: %d, Class: %s, Text: %s', [GetDlgCtrlID(StHandle), buffer, desc]));
EnumChildWindows(StHandle, @EnumProc, Integer(Lines));
end;
I come from outer space to save the human race
|
|
Zitat
|