i'm trying to change the option to tile the desktop wallpaper. i'm using this code:
#include <Shlobj.h>
...
WALLPAPEROPT WPO;
...
WPO.dwStyle = WPSTYLE_TILE;
IActiveDesktop::SetWallpaperOptions(&WPO,0);
but i keep getting these errors:
error C2065: 'WALLPAPEROPT' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'WPO'
error C2065: 'WPO' : undeclared identifier
error C2224: left of '.dwStyle' must have struct/union type
error C2065: 'WPSTYLE_TILE' : undeclared identifier
error C2143: syntax error : missing ';' before ':'
to my knowledge WALLPAPEROPT is declared in Shlobj.h. all help is appreciated.
