Bonjour,

Je contrôle une application externe sans problème sauf un :
JE suis capable d'ouvrir la boite de dialogue pour sauvegarder ou charger un fichier MAIS : impossible d'accéder au champ 'EDIT' pour y inscrire un nom de fichier spécifique.
La Classe 'EDIT' n'apparait pas quand je liste tous les enfants de la boite de dialogue.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 
 h := FindWindow(PChar('#32770'),PChar('Sauver une partie'));
 showmessage( inttostr(h));
 memo1.Lines.Add(inttostr(h)+ ' dialog'); // pour info seulement
 Child := GetWindow(h, GW_CHILD);
  While Child <> 0 do
  Begin
   If GetClassName(Child, C, SizeOf(C)) > 0 Then
     begin
      memo1.Lines.Add(inttostr(child)+ ' ' + strPAS(C));
      If UpperCase(StrPAS(C)) = 'LISTBOX'Then
        begin
          SendMessage(Child, WM_SETTEXT, 0,integer(PChar(test)));
        end;
     end;
     Child := GetWindow(Child, GW_HWNDNEXT);
   End ;
Dams mon Mémo témoin j'obtiens les classes suivantes :

1246786 dialog
1312282 DUIViewWndClassName
1574382 ToolbarWindow32
394806 Button
1705380 Button
263866 ScrollBar
1574572 Static
919148 Static
1115758 Static
1312278 ListBox
919172 Static
1115668 Button
1443412 WorkerW
Si quelqu'un a une idée ???

MERCI à vous