Вниз
Скачать: 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.034 c
3-1097763050
denis24
2004-10-14 18:10
2004.11.14
Добавление записи в table


3-1097590398
}|{yk
2004-10-12 18:13
2004.11.14
С какой радости Borland в DB.pas написала такое?


1-1099075284
BlackLord2003
2004-10-29 22:41
2004.11.14
TBX


1-1098887305
progress
2004-10-27 18:28
2004.11.14
Panel1.Handle - обработка изображения


14-1098912027
AD_infiniTUM
2004-10-28 01:20
2004.11.14
MemProof




   Наверх