Fondo de desktop....

20/02/2004 - 16:22 por Jaime Boloix | Informe spam
Como puedo setear mi imagen como fondo de desktop desde un programa en
Visual C++??

Preguntas similare

Leer las respuestas

#1 Rodrigo Corral González [MVP]
20/02/2004 - 17:58 | Informe spam
Se almacena en el registro:

User Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
System
Value Name: Wallpaper

Establecelo a la ruta del wallpaper que quieras poner


Rodrigo Corral González [MVP]

microsoft.public.es.vc FAQ
http://vcfaq.europe.webmatrixhosting.net
Respuesta Responder a este mensaje
#2 Hackman
20/02/2004 - 20:32 | Informe spam
Debes usar la función de la API, esto envia un mensaje a
todas las ventanas para que se acutalizen automaticamente,
funciona para los colores, fonts...:

SystemParametersInfo

The SystemParametersInfo function retrieves or sets the
value of one of the system-wide parameters. This function
can also update the user profile while setting a parameter.


BOOL SystemParametersInfo(
UINT uiAction,
UINT uiParam,
PVOID pvParam,
UINT fWinIni
);


Se almacena en el registro:

User Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersio


n\Policies\
System
Value Name: Wallpaper

Establecelo a la ruta del wallpaper que quieras poner


Rodrigo Corral González [MVP]

microsoft.public.es.vc FAQ
http://vcfaq.europe.webmatrixhosting.net



.

Respuesta Responder a este mensaje
#3 Gabriel Gibaut
21/02/2004 - 04:14 | Informe spam
Otra forma es usar la interfaz del shell IActiveDesktop, con los metodos
SetWallpaper y SetWallPaperOptions.

Saludos

Gabriel



"Hackman" escribió en el mensaje
news:13fa901c3f7e8$59277fa0$
Debes usar la función de la API, esto envia un mensaje a
todas las ventanas para que se acutalizen automaticamente,
funciona para los colores, fonts...:

SystemParametersInfo

The SystemParametersInfo function retrieves or sets the
value of one of the system-wide parameters. This function
can also update the user profile while setting a parameter.


BOOL SystemParametersInfo(
UINT uiAction,
UINT uiParam,
PVOID pvParam,
UINT fWinIni
);


Se almacena en el registro:

User Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersio


n\Policies\
System
Value Name: Wallpaper

Establecelo a la ruta del wallpaper que quieras poner


Rodrigo Corral González [MVP]

microsoft.public.es.vc FAQ
http://vcfaq.europe.webmatrixhosting.net



.

email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida