Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size of integer and pointer on a machine Pin
Omar Alvi9-Jun-03 19:18
Omar Alvi9-Jun-03 19:18 
GeneralRe: size of integer and pointer on a machine Pin
Ryan Binns9-Jun-03 23:15
Ryan Binns9-Jun-03 23:15 
GeneralPanning -Zooming-Centering 2d shapes Pin
ninpo9-Jun-03 4:50
ninpo9-Jun-03 4:50 
QuestionHow to import the addressbook of the Cuteftp to my program? Pin
kindows9-Jun-03 4:38
kindows9-Jun-03 4:38 
QuestionWhich API can set a image file as wallpaper? Pin
white jungle9-Jun-03 4:35
white jungle9-Jun-03 4:35 
AnswerRe: Which API can set a image file as wallpaper? Pin
Ryan Binns9-Jun-03 4:43
Ryan Binns9-Jun-03 4:43 
AnswerRe: Which API can set a image file as wallpaper? Pin
kindows9-Jun-03 4:44
kindows9-Jun-03 4:44 
AnswerRe: Which API can set a image file as wallpaper? Pin
Sardaukar9-Jun-03 22:02
Sardaukar9-Jun-03 22:02 
[MSDN October 2001]

IActiveDesktop::SetWallpaper
Sets the wallpaper for the Active Desktop.

HRESULT SetWallpaper(
LPCWSTR pwszWallpaper,
DWORD dwReserved
);

Parameters
pwszWallpaper
String value containing the file name of the wallpaper to be set.
dwReserved
Reserved. Must be set to zero.
Return Values
Returns S_OK if successful, or an OLE error code otherwise.

See Also
IActiveDesktop

Requirements
Version 4.71 and later of Shell32.dll

Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later).
Windows 95/98/Me: Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later).
Header: Declared in Shlobj.h.

So it should work from IE 4.0+. Hope it helps.

For a lower version, try SystemParametersInfo:

BOOL SystemParametersInfo(
UINT uiAction, // system parameter to retrieve or set
UINT uiParam, // depends on action to be taken
PVOID pvParam, // depends on action to be taken
UINT fWinIni // user profile update option
);


SPI_SETDESKWALLPAPER
Sets the desktop wallpaper.

The value of the pvParam parameter determines the new wallpaper.
To specify a wallpaper bitmap, set pvParam to point to a null-terminated string containing the name of a bitmap file.

Setting pvParam to "" removes the wallpaper.
Setting pvParam to SETWALLPAPER_DEFAULT or NULL reverts to the default wallpaper.
GeneralBasic understanding question... Pin
CherezZaboro9-Jun-03 4:32
CherezZaboro9-Jun-03 4:32 
GeneralRe: Basic understanding question... Pin
valikac9-Jun-03 6:35
valikac9-Jun-03 6:35 
GeneralRe: Basic understanding question... Pin
CherezZaboro9-Jun-03 7:02
CherezZaboro9-Jun-03 7:02 
GeneralRe: Basic understanding question... Pin
valikac9-Jun-03 7:22
valikac9-Jun-03 7:22 
GeneralRe: Basic understanding question... Pin
CherezZaboro9-Jun-03 7:36
CherezZaboro9-Jun-03 7:36 
GeneralRe: Basic understanding question... Pin
valikac9-Jun-03 7:39
valikac9-Jun-03 7:39 
GeneralLayered window problem Pin
Bedas9-Jun-03 4:21
Bedas9-Jun-03 4:21 
GeneralRe: Layered window problem Pin
Ryan Binns9-Jun-03 4:37
Ryan Binns9-Jun-03 4:37 
GeneralRe: Layered window problem Pin
Bedas10-Jun-03 0:31
Bedas10-Jun-03 0:31 
GeneralRe: Layered window problem Pin
Ryan Binns10-Jun-03 0:51
Ryan Binns10-Jun-03 0:51 
GeneralList Control Pin
User 98859-Jun-03 3:49
User 98859-Jun-03 3:49 
GeneralRe: List Control Pin
valikac9-Jun-03 6:37
valikac9-Jun-03 6:37 
GeneralRe: List Control Pin
User 98859-Jun-03 6:56
User 98859-Jun-03 6:56 
GeneralRe: List Control Pin
valikac9-Jun-03 7:26
valikac9-Jun-03 7:26 
GeneralGetting text into Word Pin
Martyn Pearson9-Jun-03 3:32
Martyn Pearson9-Jun-03 3:32 
GeneralRe: Getting text into Word Pin
Ryan Binns9-Jun-03 4:24
Ryan Binns9-Jun-03 4:24 
GeneralPrinting Pin
si_699-Jun-03 2:59
si_699-Jun-03 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.