Вниз
Скачать: CL | DM;

Смена обоев   Найти похожие ветки 

 
Delphis ©   (2004-10-04 17:59) [0]

Подскажите, как сменить картинку рабочего стола!


 
Zeqfreed ©   (2004-10-04 18:48) [1]


uses Registry;

procedure ChangeWallPaper(filename : String; tiled, stretched : boolean);
var
r : TRegistry;
begin
r := TRegistry.Create();
r.RootKey := HKEY_CURRENT_USER;
r.OpenKey("\Control Panel\Desktop", true);
with r do begin
 WriteString("Wallpaper", filename);

 if tiled then
  WriteString("TileWallpaper", "1")
 else
  WriteString("TileWallpaper", "0");

 if stretched then
  WriteString("WallpaperStyle", "2")
 else
  WriteString("WallpaperStyle", "0");
end;
r.CloseKey;
r.Free;

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


Ставит BMP обои... для установки JPG их следует конвертировать в BMP



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.044 c
1-1098994543
Луарвик
2004-10-29 00:15
2004.11.14
Как юзать memo1.ScrollBy?


4-1096986888
programania
2004-10-05 18:34
2004.11.14
Изменение кода при выполнении программы


14-1098636223
StarkO
2004-10-24 20:43
2004.11.14
ЖСК - квартирный вопрос


1-1099246811
Новиков_Н
2004-10-31 21:20
2004.11.14
StrAlloc...StrDispose


1-1098891203
Lexx3D
2004-10-27 19:33
2004.11.14
Dll




   Наверх