![]() |
AW: Wallpaper per Monitor?
Zitat:
Delphi-Quellcode:
function SetWallpaperAPI(const AMonitor: Integer; const AFilename: string): Boolean;
var LIWallpaper : IDesktopWallpaper; LMonitorID, LWallpaperFile : PWideChar; LCount : DWORD; begin Result := False; if (AMonitor < 0) then Exit; if not FileExists(AFilename) then Exit; LWallpaperFile := PWideChar(AFilename); LIWallpaper := CoDesktopWallpaper.Create; try OleCheck(LIWallpaper.GetMonitorDevicePathCount(LCount)); if (AMonitor >= LCount) then Exit; OleCheck(LIWallpaper.GetMonitorDevicePathAt(AMonitor, LMonitorID)); OleCheck(LIWallpaper.SetWallpaper(LMonitorID, LWallpaperFile)); finally Result := True; end; end; |
AW: Wallpaper per Monitor?
Danke, werde ich mal ausprobieren!
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:18 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz