ShareVB
Messages postés
2676
Date d'inscription
vendredi 28 juin 2002
Statut
Membre
Dernière intervention
13 janvier 2016
26
27 mars 2005 à 14:23
salut,
me suis trompé, c'est pas la fonction GetTrayWnd mais :
'renvoie le handle de la fenetre bureau
Public Function GetDesktopWindow() As Long
Dim lng As Long 'valeur des handle
lng = FindWindow("Progman", vbNullString) 'd'abord "Progman"
lng = FindWindowEx(lng, 0, vbNullString, vbNullString) 'SHDLL_DefView
GetDesktopWindow = FindWindowEx(lng, 0, vbNullString, vbNullString) 'SysListView32
End Function
ShareVB