Leaked source code of windows server 2003
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.

270 lines
11 KiB

  1. /* (C) Copyright Microsoft Corporation 1991. All Rights Reserved */
  2. /*
  3. * mplayer.rc
  4. *
  5. */
  6. /* include files */
  7. #include <windows.h>
  8. #include <commdlg.h>
  9. #include "mplayer.h"
  10. #include "toolbar.h"
  11. #include "track.h"
  12. #include "mplayer.rcv"
  13. /* accelerators */
  14. MPLAYERACCEL ACCELERATORS PRELOAD
  15. BEGIN
  16. VK_F1, IDM_HELPTOPICS, VIRTKEY // Help.Help Topics
  17. VK_F5, IDM_MCISTRING, VIRTKEY, CONTROL // MCI SendCommand
  18. "^p", ID_PLAYTOGGLE
  19. "^q", ID_PLAYSEL
  20. "P", ID_PLAYSEL, VIRTKEY, ALT // play sel
  21. "P", ID_PLAYSEL, VIRTKEY, ALT, CONTROL
  22. "^s", ID_STOP
  23. VK_ESCAPE, ID_ESCAPE, VIRTKEY
  24. "^w", IDM_WINDOW // "Window"
  25. "1", IDM_ZOOM1, VIRTKEY, CONTROL // 1:1
  26. "2", IDM_ZOOM2, VIRTKEY, CONTROL // 1:2
  27. "3", IDM_ZOOM3, VIRTKEY, CONTROL // 1:3
  28. "4", IDM_ZOOM4, VIRTKEY, CONTROL // 1:4
  29. "^r", IDM_DEFAULTSIZE // Restore
  30. "^c", IDM_COPY_OBJECT // Edit.Copy
  31. "^o", IDM_OPTIONS // Edit.Options
  32. "^d", IDM_CONFIG // Device.Config
  33. "^l", IDM_SELECTION // Edit.Selection
  34. "^u", IDM_CLOSE // File.Close (Or Update)
  35. "^f", IDM_OPEN // File.Open
  36. VK_INSERT, IDM_COPY_OBJECT,VIRTKEY,CONTROL // Edit.Copy
  37. END
  38. #include "setsel.dlg"
  39. #include "options.dlg"
  40. /* icons */
  41. APPICON ICON PRELOAD amp.ico
  42. IDI_DDEFAULT ICON PRELOAD dmp.ico
  43. IDI_DSOUND ICON PRELOAD dsound.ico
  44. IDI_DVIDEO ICON PRELOAD dvideo.ico
  45. IDI_DANI ICON PRELOAD dani.ico
  46. IDI_DMIDI ICON PRELOAD dmidi.ico
  47. IDI_DCDA ICON PRELOAD dcda.ico
  48. /* cursors */
  49. IDC_DRAG CURSOR PRELOAD dragcopy.cur
  50. /* bitmaps */
  51. IDR_TOOLBAR BITMAP PRELOAD MOVEABLE DISCARDABLE resource\toolbar.bmp
  52. IDR_ARROWS BITMAP PRELOAD MOVEABLE DISCARDABLE resource\arrows.bmp
  53. IDR_MARK BITMAP PRELOAD MOVEABLE DISCARDABLE resource\mark.bmp
  54. Thumb BITMAP PRELOAD MOVEABLE DISCARDABLE resource\thumb.bmp
  55. FillPat BITMAP PRELOAD MOVEABLE DISCARDABLE resource\fillpat.bmp
  56. /* strings */
  57. STRINGTABLE PRELOAD MOVEABLE DISCARDABLE
  58. BEGIN
  59. IDS_APPNAME "Media Player"
  60. IDS_OPENTITLE "Open"
  61. IDS_FINDFILE "Locate %s %s"
  62. IDS_CANTOPENFILE "Media Player cannot open this file. Make sure the filename is correct and that the file is in a format that Media Player recognizes."
  63. IDS_CANTACCESSFILE "Media Player cannot open this file. Either access to the file is denied or the file is currently opened by another application."
  64. IDS_DEVICECANNOTPLAY "This device cannot play."
  65. IDS_DEVICEERROR "%s"
  66. IDS_NOTREADYFORMAT "%s (not ready)"
  67. IDS_READYFORMAT "%s (%s)"
  68. IDS_DEVICEMENUCOMPOUNDFORMAT "&%d %s..."
  69. IDS_DEVICEMENUSIMPLEFORMAT "&%d %s"
  70. IDS_ALLFILES "All files"
  71. IDS_CLOSE "&Close"
  72. IDS_UPDATE "&Update %s"
  73. IDS_EXIT "E&xit"
  74. IDS_EXITRETURN "E&xit && Return to %s"
  75. IDS_NOPICTURE "No Picture"
  76. IDS_FRAME "frame"
  77. IDS_HRS "hrs" /* abbreviation for hours */
  78. IDS_MIN "min" /* abbreviation for minutes */
  79. IDS_SEC "sec" /* abbreviation for seconds */
  80. IDS_MSEC "msec" /* abbreviation for milli-seconds */
  81. SCALE_HOURS "Scale: Time (hh%cmm)"
  82. SCALE_MINUTES "Scale: Time (mm%css)"
  83. SCALE_SECONDS "Scale: Time (sec)"
  84. SCALE_MSEC "Scale: Time (msec)"
  85. SCALE_FRAMES "Scale: Frames"
  86. SCALE_TRACKS "Scale: Tracks"
  87. SCALE_NOTRACKS "Scale: Unavailable"
  88. //
  89. // OLE stuff.
  90. //
  91. IDS_CLASSROOT "Media Clip"
  92. IDS_PLAYVERB "&Play"
  93. IDS_EDITVERB "&Edit"
  94. IDS_UNTITLED "(Bogus)"
  95. IDS_FRAMERANGE "You have typed numbers outside the acceptable range. Try typing a different number."
  96. IDS_CANTSTARTOLE "Unable to register OLE server"
  97. IDS_CANTLOADLIB "The dynamic link library %s cannot be loaded. Media Player cannot continue."
  98. IDS_CANTFINDPROC "The procedure %hs cannot be found in the dynamic link library %s. Media Player cannot continue."
  99. IDS_OUTOFMEMORY "Not enough memory available to complete this operation. Quit one or more applications to increase available memory and then try again."
  100. IDS_DEVICEINUSE "This device is being used by another application. Wait until it is finished, and then try again."
  101. IDS_NOGOODTIMEFORMATS "Media Player cannot play this device because the device does not support milliseconds or frames."
  102. #ifdef CHICAGO_PRODUCT
  103. IDS_NOMCIDEVICES "There are no MCI device drivers installed on your system. To install MCI device drivers, go to Control Panel and open Add Hardware."
  104. #else
  105. IDS_NOMCIDEVICES "There are no MCI device drivers installed on your system. To install MCI device drivers, go to Control Panel and open Add Hardware."
  106. #endif
  107. IDS_UPDATEOBJECT "This object has been changed. Update %s before proceeding?"
  108. IDS_CANTPLAY "The multimedia device you selected is not ready or open."
  109. IDS_CANTCOPY "There is not enough memory to copy this selection to the clipboard./n/nClose one or more files or programs, and then try again."
  110. #ifdef CHICAGO_PRODUCT
  111. IDS_CANTPLAYSOUND "Your system cannot play sound files because you don't have the required hardware or drivers installed. To install MCI device drivers, go to Control Panel and open Add Hardware."
  112. IDS_CANTPLAYVIDEO "Your system cannot play video files because you don't have the required hardware or drivers installed. To install MCI device drivers, go to Control Panel and open Add Hardware."
  113. IDS_CANTPLAYMIDI "Your system cannot play instrument music files because you don't have the required hardware or drivers installed. Double-click Add Hardware in Control Panel to install MCI device drivers."
  114. #else
  115. IDS_CANTPLAYSOUND "Your system cannot play sound files because you don't have the required hardware or drivers installed. To install MCI device drivers, go to Control Panel and open Add Hardware."
  116. IDS_CANTPLAYVIDEO "Your system cannot play video files because you don't have the required hardware or drivers installed. To install MCI device drivers, go to Control Panel and open Add Hardware."
  117. IDS_CANTPLAYMIDI "Your system cannot play instrument music files because you don't have the required hardware or drivers installed. To install MCI device drivers, go to Control Panel and open Add Hardware."
  118. #endif
  119. IDS_NOTSOUNDFILE "The file %s is not a sound file."
  120. IDS_NOTVIDEOFILE "The file %s is not a video file."
  121. IDS_NOTMIDIFILE "The file %s is not an instrument music file."
  122. /* The parameter in the following string will be replaced by the string returned by
  123. * WNetGetLastError or FormatMessage:
  124. */
  125. IDS_NETWORKERROR "A network error has occurred. %s"
  126. IDS_UNKNOWNNETWORKERROR "An unknown network error has occurred."
  127. IDS_INSERTAUDIODISC "The compact disc does not contain any playable tracks. Please insert an audio compact disc."
  128. IDS_TIMEMODE "Set Selection - Time Mode"
  129. IDS_FRAMEMODE "Set Selection - Frame Mode"
  130. IDS_TRACKMODE "Set Selection - Track Mode"
  131. IDS_SSNOTREADY "not ready"
  132. IDS_SSPAUSED "paused"
  133. IDS_SSPLAYING "playing"
  134. IDS_SSSTOPPED "stopped"
  135. IDS_SSOPEN "open"
  136. IDS_SSPARKED "parked"
  137. IDS_SSRECORDING "recording"
  138. IDS_SSSEEKING "seeking"
  139. IDS_SSUNKNOWN "(unknown)"
  140. //InPlace menu names
  141. IDS_EDITMENU "&Edit"
  142. IDS_INSERTMENU "&Insert Clip"
  143. IDS_SCALEMENU "&Scale"
  144. IDS_COMMANDMENU "&Command"
  145. IDS_HELPMENU "&Help"
  146. /* The following string is used to format the main window's title bar
  147. * where Media Player is embedded in a client document.
  148. *
  149. * E.g: "SNWBOARD.AVI - Media Clip in OLECLI.DOC"
  150. */
  151. IDS_FORMATEMBEDDEDTITLE "%s in %s"
  152. IDS_IS_RTL "0=rtl"
  153. /* Registry fix-up stuff:
  154. */
  155. IDS_BADREG "Media Player settings have been changed by another program. As a result, Media Player may not work correctly.\n\nTo fix this problem, click Yes. To exit without fixing this problem, click No."
  156. IDS_FIXREGERROR "There was an error updating the registry."
  157. /* DO NOT LOCALIZE THE FOLLOWING STRINGS */
  158. IDS_HTMLHELPFILE "MPLAYER.CHM"
  159. IDS_HELPFILE "MPLAYER.HLP"
  160. IDS_INIFILE "MPLAYER.INI"
  161. /* TOOL TIPS */
  162. IDT_PLAY "Play"
  163. IDT_PAUSE "Pause"
  164. IDT_STOP "Stop"
  165. IDT_EJECT "Eject"
  166. IDT_HOME "Previous Mark"
  167. IDT_FWD "Fast Forward"
  168. IDT_RWD "Rewind"
  169. IDT_END "Next Mark"
  170. IDT_MARKIN "Start Selection"
  171. IDT_MARKOUT "End Selection"
  172. IDT_ARROWPREV "Scroll Backward"
  173. IDT_ARROWNEXT "Scroll Forward"
  174. /* The Width - localizers should change this to fit all their long menu names */
  175. IDS_MPLAYERWIDTH "400"
  176. END
  177. MPlayer MENU PRELOAD
  178. BEGIN
  179. POPUP "&File"
  180. BEGIN
  181. MENUITEM "&Open...", IDM_OPEN
  182. MENUITEM "&Close", IDM_CLOSE
  183. MENUITEM SEPARATOR
  184. MENUITEM "E&xit", IDM_EXIT
  185. END
  186. POPUP "&Edit"
  187. BEGIN
  188. MENUITEM "&Copy Object \tCtrl+C", IDM_COPY_OBJECT
  189. MENUITEM SEPARATOR
  190. MENUITEM "&Options \tCtrl+O", IDM_OPTIONS
  191. MENUITEM "&Selection...", IDM_SELECTION
  192. END
  193. POPUP "&Device"
  194. BEGIN
  195. MENUITEM "<None>", IDM_NONE, GRAYED
  196. MENUITEM SEPARATOR
  197. MENUITEM "&Properties", IDM_CONFIG
  198. MENUITEM SEPARATOR
  199. MENUITEM "&Volume Control", IDM_VOLUME
  200. #ifdef DEBUG
  201. MENUITEM SEPARATOR
  202. MENUITEM "C&ommand...\tCtrl+F5",IDM_MCISTRING
  203. #endif
  204. END
  205. POPUP "&Scale"
  206. BEGIN
  207. MENUITEM "&Time", IDM_SCALE + ID_TIME
  208. MENUITEM "&Frames", IDM_SCALE + ID_FRAMES
  209. MENUITEM "T&racks", IDM_SCALE + ID_TRACKS
  210. END
  211. POPUP "&Help"
  212. BEGIN
  213. MENUITEM "&Help Topics", IDM_HELPTOPICS
  214. MENUITEM SEPARATOR
  215. MENUITEM "&About Media Player", IDM_ABOUT
  216. END
  217. END
  218. DLG_MCICOMMAND DIALOG 32, 18, 256, 59
  219. STYLE DS_MODALFRAME | WS_POPUP | DS_3DLOOK | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  220. CAPTION "Send MCI String Command"
  221. FONT 8, "MS Shell Dlg"
  222. BEGIN
  223. EDITTEXT IDC_MCICOMMAND, 50, 4, 186, 12, ES_AUTOHSCROLL
  224. DEFPUSHBUTTON "&Send", IDOK, 7, 43, 40, 14
  225. PUSHBUTTON "&Close", IDCANCEL, 50, 43, 40, 14
  226. LTEXT "Command:", -1, 7, 4, 40, 8
  227. LTEXT "Result:", -1, 7, 20, 40, 8
  228. LTEXT "", IDC_RESULT, 50, 20, 190, 20
  229. END