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.

101 lines
4.4 KiB

  1. #define WIN32_LEAN_AND_MEAN
  2. #include <windows.h>
  3. #include "resource.h"
  4. #include "servui.rcv"
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // MENU - POPUP - Right Click on TaskBar Icon
  8. //
  9. // This menu is displayed on a right click of the taskbar icon
  10. //
  11. IDM_TRAY_POPUP_MENU MENU DISCARDABLE
  12. BEGIN
  13. POPUP "&File"
  14. BEGIN
  15. MENUITEM "&Configure", IDM_POPUP_OPEN
  16. MENUITEM SEPARATOR
  17. MENUITEM "E&xit", IDM_POPUP_EXIT
  18. END
  19. END
  20. /////////////////////////////////////////////////////////////////////////////
  21. //
  22. // Dialog
  23. //
  24. IDD_CONFIG_DIALOG DIALOGEX 0, 0, 252, 225
  25. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  26. CAPTION "Microsoft .Net Slideshow Projector"
  27. FONT 8, "MS Shell Dlg"
  28. BEGIN
  29. ICON IDI_MONITOR,IDC_MYPICTURES_ICON,7,7,21,20
  30. LTEXT "Microsoft .Net Slideshow Projector",
  31. IDC_DIALOG_DESCRIPTION,41,13,204,8
  32. CONTROL "",IDC_DIVIDER,"Static",SS_ETCHEDHORZ,7,34,238,1
  33. LTEXT "More",IDC_FREQ_LESS,7,54,17,8
  34. CTEXT "XXXXXXXXXXXXXXXXXXXXXXXX",IDC_MINUTES_AND_SECONDS,35,66,
  35. 182,8
  36. LTEXT "Less",IDC_FREQ_MORE,229,54,16,8,0,WS_EX_RIGHT
  37. LTEXT "How often should pictures &change?",
  38. IDC_FREQUENCY_STATIC,7,40,238,8
  39. CONTROL "",IDC_FREQUENCY,"msctls_trackbar32",TBS_AUTOTICKS |
  40. TBS_NOTICKS | WS_TABSTOP,35,51,182,15
  41. LTEXT "Smaller",IDC_SIZE_LESS,7,94,24,8
  42. CTEXT "XXXXXXXXXXXXXXXXXXXXXXXX",IDC_IMAGE_SIZE_DESC,35,107,
  43. 182,8
  44. LTEXT "Larger",IDC_SIZE_MORE,224,94,21,8,0,WS_EX_RIGHT
  45. LTEXT "&How big should pictures be?",IDC_MAX_SIZE_STATIC,7,81,
  46. 238,8
  47. CONTROL "",IDC_MAX_SIZE,"msctls_trackbar32",TBS_AUTOTICKS |
  48. TBS_NOTICKS | WS_TABSTOP,35,91,182,15
  49. LTEXT "Use &pictures in this folder:",IDC_STATIC,7,122,238,8
  50. EDITTEXT IDC_IMAGEDIR,7,134,184,14,ES_AUTOHSCROLL | ES_READONLY
  51. PUSHBUTTON "&Browse",IDC_BROWSE,195,134,50,14
  52. CONTROL "Stretch s&mall pictures",IDC_ALLOWSTRETCHING,"Button",
  53. BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,7,157,238,10
  54. CONTROL "&Show file names",IDC_DISPLAYFILENAME,"Button",
  55. BS_AUTOCHECKBOX | WS_TABSTOP,7,171,238,10
  56. CONTROL "Allow scrolling through pictures with the &keyboard",
  57. IDC_ALLOW_KEYBOARDCONTROL,"Button",BS_AUTOCHECKBOX |
  58. WS_TABSTOP,7,185,238,10
  59. CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,7,201,237,1
  60. DEFPUSHBUTTON "OK",IDOK,87,206,50,14
  61. PUSHBUTTON "Cancel",IDCANCEL,141,206,50,14
  62. PUSHBUTTON "Apply",IDC_APPLY,195,206,50,14,WS_DISABLED
  63. END
  64. /////////////////////////////////////////////////////////////////////////////
  65. //
  66. // Icon
  67. //
  68. // Icon with lowest ID value placed first to ensure application icon
  69. // remains consistent on all systems.
  70. IDI_MONITOR ICON DISCARDABLE "monitor.ico"
  71. /////////////////////////////////////////////////////////////////////////////
  72. //
  73. // StringTable
  74. //
  75. STRINGTABLE DISCARDABLE
  76. BEGIN
  77. IDS_MINUTES_AND_SECONDS "%d minutes and %d seconds"
  78. IDS_MINUTE_AND_SECONDS "%d minute and %d seconds"
  79. IDS_MINUTES_AND_SECOND "%d minutes and %d second"
  80. IDS_MINUTE_AND_SECOND "%d minute and %d second"
  81. IDS_SECONDS "%d seconds"
  82. IDS_SECOND "%d second"
  83. IDS_MINUTES "%d minutes"
  84. IDS_MINUTE "%d minute"
  85. IDS_PERCENT "%d%% of the screen"
  86. IDS_ERR_INVALID_DEVICE_DIR "The application directory '%s' does not exist. This will prevent clients from accessing the Slideshow Server"
  87. IDS_ERR_INVALID_IMAGE_DIR "The images directory '%s' does not exist."
  88. IDS_ERR_SLIDESHOW_SERVER_NOT_FOUND "The Slideshow Server was not found. Please make sure the 'msprjctr.dll' exists and is registered"
  89. IDS_ERR_SERVER_ERROR "Unknown server error"
  90. IDS_ERR_CAPTION "Error: Microsoft .Net Slideshow Projector"
  91. IDS_ERR_FAILED_TO_START_SLIDESHOW "Failed to start the slideshow projector. Please ensure that Universal Plug and Play is installed, and the SSDP Service is started."
  92. END