Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cWinWallpaper.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cWinWallpaper_H
7 #define _INC_cWinWallpaper_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../GrayLibBase.h"
15 
16 #if defined(_WIN32) && ! defined(_MFC_VER) && ! defined(UNDER_CE) && defined(_MSC_VER)
17 
18 namespace GrayLib
19 {
20  UNITTEST2_PREDEF(cWinWallpaper);
21 
22  class GRAYLIB_LINK cWinWallpaper : public cSingleton < cWinWallpaper >
23  {
27  friend class cSingleton < cWinWallpaper > ;
29 
30  protected:
31  bool m_bRestoreActiveDesktop;
32  int m_nRestoreWallpaper; // count calls to KillWallpaper
33 
34  protected:
35  HRESULT KillActiveDesktop();
36  HRESULT RestoreActiveDesktop();
37 
38  protected:
39  cWinWallpaper(void);
40  ~cWinWallpaper(void);
41 
42  public:
43  HRESULT KillWallpaper();
44  HRESULT RestoreWallpaper();
45 
46  UNITTEST_FRIEND(cWinWallpaper);
47  };
48 }
49 #endif
50 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define CHEAPOBJECT_IMPL
Definition: cHeapObject.h:32
#define UNITTEST_FRIEND(n)
Define this in the class body to be unit tested. Allow the unit test to access private/protected stuf...
Definition: cUnitTestDecl.h:17
Definition: cMesh.h:22
UNITTEST2_PREDEF(cQuadtree)