Results 1 to 12 of 12

Thread: Many questions regarding the desktop

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    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.

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    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.

  3. #3

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    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.

  4. #4
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    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.


  5. #5

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Cool

    You WERE helpful (I wasn't being sarcastic). I'll play with that as soon as I learn how to.

  6. #6
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    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.

  7. #7

  8. #8
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    Hello,
    Could you post your e-mail address again becuase I keep getting an error saying your address is being rejected.

    Desire.

  9. #9

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    My E-Mail


  10. #10
    New Member
    Join Date
    Jul 1999
    Location
    HKSAR
    Posts
    9
    Mind giving me one too? thanks!



  11. #11
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73

    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.

  12. #12

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    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
  •  



Click Here to Expand Forum to Full Width