-
My latest program maniplates the desktop. However, I have a few dillemas (I'm using Windows 2000):
1. When I use the SystemParametersInfo call to set the desktop image, I think it does set the desktop image, but it only takes effect when Windows restarts. How can I force an update?
2. On a somewhat related matter, how can I set the attributes of the position of the wallpaper if it is not an HTML page? By attributes, I mean Tile/Center/Stretch.
3. How can I set the "Use Large Icons" attribute of all system icons, like in the "Effects" tab on the Desktop Properties window in Windows 98?
Any help would be greatly appreciated.
-
Hello,
Here is a little bit of code for you for your wallpaper problem, as for the rest I'm using Windows 95 not '98, 2000.
Code:
Option Explicit
'//API CALLS NEEDED
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
'//CONTANTS NEEDED FOR CHANGING THE WALLPAPER
Const SPI_SETDESKWALLPAPER = 20
Private Sub Command1_Click()
Dim lChangeWP As Long
Dim sBackground As String
sBackground = "C:\windows\setup.bmp" '//GET THE NEW BACKGROUND
lChangeWP = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, sBackground, 0) '//SET THE NEW BACKGROUND
End Sub
Hope it helped,
Desire.
-
It did (sort of)
It refeshed the desktop with the correct image, but in the Desktop Properties window, the setting still says that the background is set to "None." Not a major problem.
-
Hello,
I've just found that out myself, it also doesn't keep the wallpaper after you have rebooted the computer, so if windows 2000 does it the same way as '95 then you'll have to use the Registry.
Change the following value, 'Wallpaper' under the key, 'HKEY_CURRENT_USER\Control Panel\desktop' to the new value. This should then show up in the properties window.
Hope I've been more helpfull this time,
Desire.
-
Cool
You WERE helpful (I wasn't being sarcastic). I'll play with that as soon as I learn how to. :)
-
Hello,
If you need help with the registry I can send you a couple of usefull files to help you. Just post your e-mail address on here and I'll send them to you.
Desire.
-
My E-mail
-
Hello,
Could you post your e-mail address again becuase I keep getting an error saying your address is being rejected.
Desire.
-
My E-Mail
-
Mind giving me one too? thanks!
:):D:)
-
E-Mail
Hello,
Outlook Distress just wont send my e-mail to you so could you send me one to [email protected] so I can just reply to it.
Desire.
-
I send you an e-mail (my handle was in the subject).