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.

37 lines
1.5 KiB

  1. #ifndef __b4844ae5_d6e1_43d5_9820_28ad3445cf0d__
  2. #define __b4844ae5_d6e1_43d5_9820_28ad3445cf0d__
  3. #include <w4warn.h>
  4. #pragma warning (disable:4127) // conditional expression is constant
  5. #pragma warning (disable:4189) // local variable is initialized but not referenced
  6. #pragma warning (disable:4245) // conversion from/to signed/unsigned mismatch
  7. #pragma warning (disable:4706) // assignment within conditional expression
  8. #include <windows.h>
  9. #include <commctrl.h>
  10. #define MAIN_WINDOW_CLASSNAME TEXT("MySlideshowPicturesWindow")
  11. #include <stdio.h>
  12. #include <tchar.h>
  13. void DebugMsg(int i, const char* pszFormat, ...);
  14. #define DM_TRACE 1
  15. #define CHANGE_TIMER_INTERVAL_MSEC 6000 // slides are displayed for 6 seconds
  16. #define PAINT_TIMER_INTERVAL_MSEC 100 // how often to paint
  17. #define TOOLBAR_TIMER_DELAY 6000 // toolbar is left up 6 seconds after input
  18. #define MAX_FAILED_FILES 1 // on any failures - close the screen saver
  19. #define MAX_SUCCESSFUL_FILES 14400 // maximum number of images to support.
  20. // with a 6 second delay, will run for 24 hours
  21. #define MAX_DIRECTORIES 1000 // maximum number of directories to walk into
  22. #define MAX_SCREEN_PERCENT 100
  23. #define ALLOW_STRECTCHING 0 // expand images to full screen?
  24. #define RECTWIDTH(rc) ((rc).right-(rc).left)
  25. #define RECTHEIGHT(rc) ((rc).bottom-(rc).top)
  26. #endif