Bonjour,
Dans la FAQ, on trouve la procedure suivante :
Mais à la compilation, on a l'erreur : "Pas assez de paramètres originaux" pour la ligne :
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
19 procedure TForm1.Devant; Var Proc,Nous:Integer; begin Proc:=GetWindowThreadProcessId(GetForeGroundWindow); Nous:=GetCurrentThreadID; If Proc<>Nous Then Begin // Nous ne sommes pas l'application en premier plan AttachThreadInput(Nous,Proc,True); SetForeGroundWindow(Handle); AttachThreadInput(Nous,Proc,False); Application.BringToFront; End Else Begin // Nous sommes déjà en premier plan SetForeGroundWindow(Handle); End; end;
Proc:=GetWindowThreadProcessId(GetForeGroundWindow);
???
Merci pour vos lumières...
Partager