Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

  1. #ifndef __4c5a2307_6dd9_4dfb_9c42_76680f6cb9bf__
  2. #define __4c5a2307_6dd9_4dfb_9c42_76680f6cb9bf__
  3. #include "findimgs.h"
  4. #include "painters.h"
  5. #include "waitcurs.h"
  6. #include "simlist.h"
  7. #include "simarray.h"
  8. #include "gphelper.h"
  9. class CImageScreenSaver
  10. {
  11. private:
  12. CFindImageFiles m_FindImageFiles;
  13. CImagePainter *m_pPainter;
  14. HINSTANCE m_hInstance;
  15. RECT m_rcClient;
  16. CGdiPlusHelper m_GdiPlusHelper;
  17. bool m_bToolbarVisible;
  18. private:
  19. // No implementation
  20. CImageScreenSaver(void);
  21. CImageScreenSaver( const CImageScreenSaver & );
  22. CImageScreenSaver &operator=( const CImageScreenSaver & );
  23. public:
  24. CImageScreenSaver( HINSTANCE hInstance,
  25. bool bToolbarVisible );
  26. ~CImageScreenSaver(void);
  27. void ShowToolbar(bool bFlag);
  28. void OnInput();
  29. bool IsValid(void) const;
  30. HANDLE Initialize( HWND hwndNotify,
  31. UINT nNotifyMessage,
  32. HANDLE hEventCancel );
  33. bool TimerTick( CSimpleDC &ClientDC );
  34. void Paint( CSimpleDC &PaintDC );
  35. bool ReplaceImage( bool bForward, bool bNoTransition );
  36. int Count(void) const
  37. {
  38. return m_FindImageFiles.Count();
  39. }
  40. void ResetFileQueue(void)
  41. {
  42. m_FindImageFiles.Reset();
  43. }
  44. bool FoundFile( LPCTSTR pszFilename )
  45. {
  46. return m_FindImageFiles.FoundFile( pszFilename );
  47. }
  48. void SetScreenRect( HWND hWnd )
  49. {
  50. GetClientRect( hWnd, &m_rcClient );
  51. }
  52. CBitmapImage *CreateImage( LPCTSTR pszFilename );
  53. };
  54. #endif // __IMAGESCR_H_INCLUDED