|
-
Mar 25th, 2000, 01:36 AM
#1
Thread Starter
Member
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.
-
Mar 25th, 2000, 02:23 AM
#2
Lively Member
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.
-
Mar 25th, 2000, 02:43 AM
#3
Thread Starter
Member
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.
-
Mar 25th, 2000, 03:02 AM
#4
Lively Member
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.
-
Mar 25th, 2000, 03:09 AM
#5
Thread Starter
Member
Cool
You WERE helpful (I wasn't being sarcastic). I'll play with that as soon as I learn how to.
-
Mar 25th, 2000, 03:23 AM
#6
Lively Member
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.
-
Mar 25th, 2000, 04:24 AM
#7
Thread Starter
Member
-
Mar 25th, 2000, 07:09 AM
#8
Lively Member
Hello,
Could you post your e-mail address again becuase I keep getting an error saying your address is being rejected.
Desire.
-
Mar 26th, 2000, 07:23 PM
#9
Thread Starter
Member
-
Mar 26th, 2000, 08:16 PM
#10
New Member
-
Mar 27th, 2000, 03:09 AM
#11
Lively Member
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.
-
Mar 27th, 2000, 09:47 PM
#12
Thread Starter
Member
I send you an e-mail (my handle was in the subject).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|