Fond d'écran !

Kevb37 Messages postés 19 Date d'inscription dimanche 26 janvier 2003 Statut Membre Dernière intervention 10 décembre 2005 - 18 août 2003 à 19:50
cs_neodante Messages postés 2835 Date d'inscription lundi 11 août 2003 Statut Modérateur Dernière intervention 16 décembre 2006 - 18 août 2003 à 20:52
Commnent changer le fond d'écran actuel ( je recherche l'endroit où est stoqué le raccourci vers l'image ou un truc com ça). je sais déja comment aller chercher l'image dans un dossier (commondialog etc...). MERCI d'avance

KEVIN

1 réponse

cs_neodante Messages postés 2835 Date d'inscription lundi 11 août 2003 Statut Modérateur Dernière intervention 16 décembre 2006 11
18 août 2003 à 20:52
8-) Neodante

Utilise l'API :

Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Const SPI_SETDESKWALLPAPER = 20
Const SPIF_UPDATEINIFILE = &H1

de la manière suivante :

SystemParametersInfo SPI_SETDESKWALLPAPER, 0, NomFichier, SPIF_UPDATEINIFILE

@+
0
Rejoignez-nous