|
Dernière réponse | |
---|---|
Sujet : [Delphi 4] Handle dun bouton d'une autre application... | |
Slide | function EnumChildProc(Wnd: HWnd; Form: TForm1): Boolean; stdcall; var Buffer : array[0..99] of Char; AText : string; begin // Gets the window class and text. GetClassName(Wnd, Buffer, 100); AText := string(Buffer); GetWindowText(Wnd, Buffer, 100); AText := AText + ' (' + string(Buffer) + ')'; // Add the new child node. Form.Listbox1.items.add(AText); // Continues enumerating. Result := True; end; procedure TForm1.Button2Click(Sender: TObject); begin Listbox1.items.clear; EnumChildWindows(FindWindow(nil, 'NOM DE APLICATION'),@EnumChildProc,Lparam(Form1)); bon heu, comment on di de cliker sur un bouton ou de faire apparaitre ? :) heuuu :) Je c jsute le faire avec le handle moi :/ |
Vue Rapide de la discussion |
---|