Article View: comp.lang.pascal.delphi.misc
Article #388Re: How to change WallPaper ??
From: Lewis Howell
Date: Mon, 24 May 1999 00:00
Date: Mon, 24 May 1999 00:00
40 lines
1987 bytes
1987 bytes
This is from my Delphi Tip of the Day webpage at
http://members.truepath.com/delphi
From what I have been told, this does not work with ActivePage setup. You
will have to use the SystemParametersInfo() WIN32 API call sending in to
SPI_SETDESKWALLPAPER as the first parameter to tell windows we are changing
the wallpaper. The second parameter must be 0, the third is the name and
path of your bitmap, and the fourth is SPIF_SENDCHANGE.
{...}
procedure TForm1.Button1Click(Sender: TObject);
begin
SystemParametersInfo(SPI_SETDESKWALLPAPER,
0,
pChar('c:\windows\red blocks.bmp'),
SPIF_SENDCHANGE);
end;
{...}
--
--
Lewis Howell
lewishowell@yahoo.com
Lou's Delphi Tip of the Day:
http://members.truepath.com/delphi
Lou's personal webpage:
http://members.truepath.com/LewisHowell
Chow Hoi Ka, Eric wrote in message <3748FE18.3FF7178D@sftw.umac.mo>...
>Hello,
>
>How can change the current WallPaper in Delphi and update it at once
>????
>It means that when I click the Button, the current WallPaper will be
>changed at once ..
>
>
>Best regards,
>Eric
>
Technical Details
Message-ID:
<Dlc23.4118$Ie1.153688@news14.ispnews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3748FE18.3FF7178D@sftw.umac.mo>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd817,3c9bd103ac2c3a39 X-Google-Attributes: gidfd817,public X-Google-Thread: 1043cf,3c9bd103ac2c3a39 X-Google-Attributes: gid1043cf,public X-Google-Thread: 10baee,3c9bd103ac2c3a39 X-Google-Attributes: gid10baee,public From: "Lewis Howell" <N.O.S.P.A.M.lewishowell@yahoo.com> Subject: Re: How to change WallPaper ?? Date: 1999/05/24 Message-ID: <Dlc23.4118$Ie1.153688@news14.ispnews.com> X-Deja-AN: 481497602 References: <3748FE18.3FF7178D@sftw.umac.mo> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Trace: news14.ispnews.com 927551971 209.136.110.120 (Mon, 24 May 1999 09:19:31 EDT) NNTP-Posting-Date: Mon, 24 May 1999 09:19:31 EDT Newsgroups: comp.lang.pascal.delphi.misc,alt.comp.lang.borland-delphi,borland.public.delphi.objectpascal