How To Change The Desktop Wallpaper

CK CK 3788 
Created at
Updated at  
2,153 0 0

Change the wallpaper of your system by code

 

uses  
  Registry, WinProcs;  

procedure SetWallpaper(   
            sWallpaperBMPPath : String;   
            bTile : boolean );  
var  
  reg : TRegIniFile;  

begin  
  reg := TRegIniFile.Create('Control PanelDesktop' );  
  with reg do  
  begin  
    WriteString( '', 'Wallpaper',   sWallpaperBMPPath );  
    if( bTile )then  
    begin  
      WriteString(   '', 'TileWallpaper', '1' );  
    end else  
    begin  
      WriteString(   '', 'TileWallpaper', '0' );  
    end;  
  end;  
  reg.Free;  
   

  SystemParametersInfo(   
    SPI_SETDESKWALLPAPER,   
    0,   
    Nil,   
    SPIF_SENDWININICHANGE );  
end;


 

Tags Desktop Wallpaper SPIF_SENDWININICHANGE SPI_SETDESKWALLPAKER SetWallPaper TRegIniFile TileWallpaper Wall Paper Wallpaper Facebook X
Comments 0
  1. Delete files with the ability to UNDO
    439
  2. Does my CD-ROM drive contain an audio CD?
    364
  3. Convert a mapped drive to a full UNC path
    833
  4. Checking If File Is In Use
    922
  5. Browse for Computers, Folders, Files and Printers
    571
  6. How to draw Transparent Text on bitmap
    386
  7. How Do I Remove The Application Icon From The Taskbar?
    1,099
  8. How To Show The Print Dialog And Print Text Files
    1,295
  9. How To Make An Animated Application Icon
    820
  10. How To Pass The Focus To The Next/prior Control
    1,210
  11. How To Make Rounded Windows
    1,227
  12. How To Get Windows Uptime
    1,478
  13. How To Find Out Total And Available Memory
    1,640
  14. How To Change The System Time
    1,254
  15. How To Get The Windows OS Version
    618
  16. How To Get The Windows Language
    1,147
  17. How To Make A Gradient Filled Form
    839
  18. How can I hide the caption bar on a form?
    1,398
  19. How To Send An E-mail By Code
    1,115
  20. How To Open Url In Default Webbrowser
    460
  21. How To Check If A Soundcard Is Installed
    1,563
  22. How To Change Screen Resolution
    2,074
  23. How To Force The Correct Decimal Separator
    1,778
  24. How To Register Own File Types
    1,191
  25. How To Get Volume Name
    411
  26. How To Get Windows And System Directory
    2,697
  27. Get The Drive Type
    498
  28. How can I modify aliases programmatically ?
    1,304
  29. Setting TQuery SQL Statement
    12,158
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    42
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    36
  3. How do I create animated background for Google Meet?
    20,967
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    251
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  7. Array of arguments passed to script in PHP
    90
  8. Invalid Auction Storms in Ad Tech
    98
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  10. The Two Clocks of Ad Server Architecture
    70
  11. Frequency Cap Architecture Overview
    515
  12. Collecting Proof-of-Play from 100,000 Screens
    146
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    288
  14. What is RedisVL?
    109
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    231
  16. TPU & GPU Cluster Management Tools
    245
  17. The Concept of Scaffolding in AI Agents
    234
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    259
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  22. Machine Learning: Training vs. Ranking
    222
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  25. Designing a Data Curation System Around a Vector Database
    221
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    256
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    196
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    219
  30. Understanding Data Lineage
    262