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.

255 lines
9.3 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_INDEX, VIRTKEY // Help.Index
  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_STOP, 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 resource\MPlayer.ico
  42. /* bitmaps */
  43. IDBMP_TOOLBAR BITMAP PRELOAD MOVEABLE DISCARDABLE resource\toolbar.bmp
  44. IDBMP_ARROWS BITMAP PRELOAD MOVEABLE DISCARDABLE resource\arrows.bmp
  45. IDBMP_MARK BITMAP PRELOAD MOVEABLE DISCARDABLE resource\mark.bmp
  46. Thumb BITMAP PRELOAD MOVEABLE DISCARDABLE resource\thumb.bmp
  47. FillPat BITMAP PRELOAD MOVEABLE DISCARDABLE resource\fillpat.bmp
  48. /* strings */
  49. STRINGTABLE PRELOAD MOVEABLE DISCARDABLE
  50. BEGIN
  51. IDS_APPNAME "Media Player"
  52. IDS_OPENTITLE "Open"
  53. IDS_FINDFILE "Locate Media Clip %ls"
  54. IDS_CANTOPENFILEDEV "Cannot open file or device."
  55. IDS_CANTOPENFILE "Cannot open the specified file."
  56. IDS_DEVICECANNOTPLAY "This device cannot play."
  57. IDS_DEVICEERROR "%ls"
  58. IDS_NOTREADYFORMAT "%ls (not ready)"
  59. IDS_READYFORMAT "%ls (%ls)"
  60. IDS_ANYDEVICE "Any Device"
  61. IDS_ALLFILES "All files"
  62. IDS_CLOSE "&Close"
  63. IDS_UPDATE "&Update %ls"
  64. IDS_EXIT "E&xit"
  65. IDS_EXITRETURN "E&xit && Return to %ls"
  66. IDS_NOPICTURE "No Picture"
  67. SCALE_HOURS "Scale: Time (hh%cmm)"
  68. SCALE_MINUTES "Scale: Time (mm%css)"
  69. SCALE_SECONDS "Scale: Time (sec)"
  70. SCALE_MSEC "Scale: Time (msec)"
  71. SCALE_FRAMES "Scale: Frames"
  72. SCALE_TRACKS "Scale: Tracks"
  73. SCALE_NOTRACKS "Scale: Unavailable"
  74. //
  75. // OLE stuff.
  76. //
  77. IDS_CLASSROOT "Media Clip"
  78. IDS_PLAYVERB "&Play"
  79. IDS_EDITVERB "&Edit"
  80. //IDS_MCIOBJECT "MCIObject in %ls"
  81. IDS_MCIOBJECT "%ls - %ls in %ls"
  82. IDS_UNTITLED "(Bogus)"
  83. IDS_FRAMERANGE "Illegal range"
  84. IDS_CANTSTARTOLE "Unable to register OLE server"
  85. IDS_NOHANDLER "Can't find object handler (mciole.dll)"
  86. IDS_NOTIFYFAILURE "The device failed to execute the last MCI command."
  87. IDS_OUTOFMEMORY "Not enough memory available to complete this operation. Quit one or more applications to increase available memory and then try again."
  88. IDS_DEVICEINUSE "This device is being used by another application. Wait until it is finished, and then try again."
  89. IDS_NOGOODTIMEFORMATS "Media Player cannot play this device because the device does not support milliseconds or frames."
  90. IDS_NOMCIDEVICES "There are no MCI device drivers installed on your system. Use the Drivers option in Control Panel to install MCI device drivers."
  91. IDS_UPDATEOBJECT "This object has been changed.\nUpdate %ls before proceeding?"
  92. IDS_CANTPLAY "Multimedia device currently not ready or open."
  93. IDS_CANTEDIT "Multimedia device currently not ready or open."
  94. IDS_CANTCOPY "Not enough memory to copy to clipboard."
  95. /* DO NOT LOCALIZE THE FOLLOWING STRINGS */
  96. IDS_HTMLHELPFILE "MPLAYER.CHM"
  97. IDS_HELPFILE "MPLAYER.HLP"
  98. IDS_INIFILE "MPLAYER.INI"
  99. END
  100. MPlayer MENU PRELOAD
  101. BEGIN
  102. POPUP "&File"
  103. BEGIN
  104. MENUITEM "&Open...", IDM_OPEN
  105. MENUITEM "&Close", IDM_CLOSE
  106. MENUITEM SEPARATOR
  107. MENUITEM "E&xit", IDM_EXIT
  108. END
  109. POPUP "&Edit"
  110. BEGIN
  111. MENUITEM "&Copy Object \aCtrl+C", IDM_COPY_OBJECT
  112. MENUITEM SEPARATOR
  113. MENUITEM "&Options... \aCtrl+O", IDM_OPTIONS
  114. MENUITEM "&Selection...", IDM_SELECTION
  115. END
  116. POPUP "&Device"
  117. BEGIN
  118. MENUITEM "<None>", IDM_NONE, GRAYED
  119. MENUITEM SEPARATOR
  120. MENUITEM "&Configure...", IDM_CONFIG
  121. #ifdef DEBUG
  122. MENUITEM "&Command...\aCtrl+F5",IDM_MCISTRING
  123. #endif
  124. END
  125. POPUP "&Scale"
  126. BEGIN
  127. MENUITEM "&Time", IDM_SCALE + ID_TIME
  128. MENUITEM "&Frames", IDM_SCALE + ID_FRAMES
  129. MENUITEM "T&racks", IDM_SCALE + ID_TRACKS
  130. END
  131. POPUP "&Help"
  132. BEGIN
  133. MENUITEM "&Contents \aF1", IDM_INDEX
  134. MENUITEM "&Search for Help on...", IDM_SEARCH
  135. MENUITEM "&How to use Help", IDM_USING
  136. MENUITEM SEPARATOR
  137. MENUITEM "&About Media Player...", IDM_ABOUT
  138. END
  139. END
  140. MPlayerSmall MENU PRELOAD
  141. BEGIN
  142. POPUP "&File"
  143. BEGIN
  144. MENUITEM "&Open...", IDM_OPEN
  145. MENUITEM "&Close", IDM_CLOSE
  146. MENUITEM SEPARATOR
  147. MENUITEM "E&xit", IDM_EXIT
  148. END
  149. POPUP "&Edit"
  150. BEGIN
  151. MENUITEM "&Copy Object \aCtrl+C", IDM_COPY_OBJECT
  152. MENUITEM SEPARATOR
  153. MENUITEM "&Options... \aCtrl+O", IDM_OPTIONS
  154. MENUITEM "&Selection...", IDM_SELECTION
  155. END
  156. POPUP "&Scale"
  157. BEGIN
  158. MENUITEM "&Time", IDM_SCALE + ID_TIME
  159. MENUITEM "&Frames", IDM_SCALE + ID_FRAMES
  160. MENUITEM "T&racks", IDM_SCALE + ID_TRACKS
  161. END
  162. POPUP "&Help"
  163. BEGIN
  164. MENUITEM "&Contents \aF1", IDM_INDEX
  165. MENUITEM "&Search for Help on...", IDM_SEARCH
  166. MENUITEM "&How to use Help", IDM_USING
  167. MENUITEM SEPARATOR
  168. MENUITEM "&About Media Player...", IDM_ABOUT
  169. END
  170. END
  171. /* main dialog box */
  172. #if 0
  173. MPLAYERBOX DIALOG PRELOAD MOVEABLE DISCARDABLE 32768, 0, 198, 44
  174. CLASS "Media Player"
  175. MENU MPlayer
  176. STYLE WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
  177. BEGIN
  178. CONTROL "", ID_MAP, "MPlayerTrackMap", 0 | WS_GROUP | WS_CHILD, 4, 1, 190, 12
  179. CONTROL "Scale: Time (hh:mm)", ID_STATIC, "SText", SS_LEFT | WS_GROUP | WS_CHILD, 125, 29, 69, 8
  180. CONTROL "", ID_SB, "SScrollbar", SBS_TOPALIGN | SBS_NOTCH | SBS_HORZ | WS_TABSTOP | WS_GROUP | WS_CHILD, 4, 13, 190, 9
  181. CONTROL "#Play", ID_PLAY, "Sbutton", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_GROUP | WS_CHILD, 5, 25, 24, 14
  182. CONTROL "#Pause", ID_PAUSE, "Sbutton", 0 | WS_TABSTOP | WS_CHILD, 35, 25, 24, 14
  183. CONTROL "#Stop", ID_STOP, "Sbutton", 0 | WS_TABSTOP | WS_CHILD, 65, 25, 24, 14
  184. CONTROL "#Eject", ID_EJECT, "Sbutton", 0 | WS_TABSTOP | WS_CHILD, 95, 25, 24, 14
  185. END
  186. #endif
  187. MCIOPENDIALOG DIALOG 36, 24, 302, 134
  188. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  189. CAPTION "Open"
  190. //FONT 8, "MS Sans Serif"
  191. FONT 8, "MS Shell Dlg"
  192. BEGIN
  193. LTEXT "File &Name:", stc3, 6, 6, 76, 10
  194. EDITTEXT edt1, 6, 16, 134, 12, ES_AUTOHSCROLL | ES_OEMCONVERT
  195. LISTBOX lst1, 6, 32, 134, 68, LBS_SORT | LBS_OWNERDRAWFIXED |
  196. LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_VSCROLL |
  197. WS_TABSTOP
  198. LTEXT "&Directories:", -1, 150, 6, 92, 9
  199. LTEXT "", stc1, 150, 18, 92, 9, SS_NOPREFIX
  200. LISTBOX lst2, 150, 32, 92, 68, LBS_SORT | LBS_OWNERDRAWFIXED |
  201. LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_VSCROLL |
  202. WS_TABSTOP
  203. LTEXT "List Files of &Type:", stc2, 6, 103, 90, 9
  204. COMBOBOX cmb1, 6, 113, 134, 69, CBS_DROPDOWNLIST |
  205. CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP
  206. LTEXT "Dri&ves:", stc4, 150, 104, 92, 9
  207. COMBOBOX cmb2, 150, 114, 92, 68, CBS_DROPDOWNLIST |
  208. CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT |
  209. CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP
  210. DEFPUSHBUTTON "OK", IDOK, 248, 6, 50, 14, WS_GROUP
  211. PUSHBUTTON "Cancel", IDCANCEL, 248, 24, 50, 14, WS_GROUP
  212. PUSHBUTTON "&Help", psh15, 248, 46, 50, 14, WS_GROUP
  213. CONTROL "&Read Only", chx1, "Button", BS_AUTOCHECKBOX | WS_GROUP |
  214. WS_TABSTOP, 248, 68, 50, 12
  215. END
  216. DLG_MCICOMMAND DIALOG 6, 18, 240, 59
  217. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  218. CAPTION "Send MCI String Command"
  219. FONT 8, "Helv"
  220. BEGIN
  221. EDITTEXT IDC_MCICOMMAND, 50, 4, 186, 12, ES_AUTOHSCROLL
  222. DEFPUSHBUTTON "Send", IDOK, 7, 43, 40, 14
  223. PUSHBUTTON "Close", IDCANCEL, 50, 43, 40, 14
  224. LTEXT "Command:", -1, 7, 4, 40, 8
  225. LTEXT "Result:", -1, 7, 20, 40, 8
  226. LTEXT "", IDC_RESULT, 50, 20, 190, 20
  227. END