17-10-12, 12:39 AM
كاتب الموضوع : AhmedEssawy
نكتب في الموديولكود :
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
Public Const SPI_SETDESKWALLPAPER = 20
كود :
Dim lngSuccess As Long
Dim strBitmapImage As String
strBitmapImage = "C:\hh.bmp"
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strBitmapImage, 0)