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.

319 lines
12 KiB

  1. /*****************************************************************************
  2. *
  3. * Component: sndvol32.exe
  4. * File: mixer.rc
  5. * Purpose: resource script
  6. *
  7. * Copyright (c) 1985-1999 Microsoft Corporation
  8. *
  9. *****************************************************************************/
  10. #include <windows.h>
  11. #include <commctrl.h>
  12. #include <comctrlp.h>
  13. #include "vu.h"
  14. #include "volids.h"
  15. #include "sndvol32.rcv"
  16. IDI_MIXER ICON BMP\MIXRCONT.ICO
  17. IDI_MUTE ICON BMP\MUTE.ICO
  18. IDI_TRAY ICON BMP\ASOUND.ICO
  19. IDI_LSPEAKER ICON BMP\LSPEAK.ICO
  20. IDI_RSPEAKER ICON BMP\RSPEAK.ICO
  21. STRINGTABLE
  22. BEGIN
  23. IDS_APPTITLE "Volume Control for %s"
  24. IDS_APPBASE "Volume Control"
  25. IDS_TRAYNAME "Volume"
  26. IDS_LABEL_MASTER "Master"
  27. IDS_LABEL_DST_VOLUME "Volume"
  28. IDS_LABEL_DST_RECORDING "Recording"
  29. IDS_LABEL_DST_UNDEFINED "Undefined"
  30. IDS_LABEL_DST_DIGITAL "Digital"
  31. IDS_LABEL_DST_LINE "Line"
  32. IDS_LABEL_DST_MONITOR "Monitor"
  33. IDS_LABEL_DST_SPEAKERS "Speakers"
  34. IDS_LABEL_DST_HEADPHONES "Headphones"
  35. IDS_LABEL_DST_TELEPHONE "Telephone"
  36. IDS_LABEL_DST_WAVEIN "Audio Input"
  37. IDS_LABEL_DST_VOICEIN "Voice Input"
  38. IDS_LABEL_SRC_MICROPHONE "Microphone"
  39. IDS_LABEL_SRC_SYNTHESIZER "MIDI Music"
  40. IDS_LABEL_SRC_COMPACTDISC "Compact Disc"
  41. IDS_LABEL_SRC_PCSPEAKER "PC Speaker"
  42. IDS_LABEL_SRC_WAVEOUT "Audio Output"
  43. IDS_LABEL_SRC_AUXILIARY "Auxiliary"
  44. IDS_LABEL_SRC_ANALOG "Analog"
  45. IDS_LABEL_SRC_SNDBLST "Sound Blaster"
  46. IDS_MMSYSPROPTITLE "Audio"
  47. IDS_MMSYSPROPTAB "Audio"
  48. IDS_ERR_NODEV "There are no active mixer devices available. To install mixer devices, go to Control Panel, click Printers and Other Hardware, and then click Add Hardware.\n\nThis program will now close."
  49. IDS_ERR_HARDWARE "There is a problem with your sound hardware. To install mixer devices, go to Control Panel, click Printers and Other Hardware, and then click Add Hardware."
  50. IDS_IS_RTL "0=rtl"
  51. IDS_HELPFILENAME "sndvol32.hlp"
  52. IDS_HTMLHELPFILENAME "sndvol32.chm"
  53. IDS_OTHERDEVICES "Other System Volume Controls"
  54. IDS_SELECT "&Select"
  55. IDS_ADV_TITLE "Advanced Controls for %s"
  56. IDS_ADV_SWITCH1 "&1 %s"
  57. IDS_ADV_SWITCH2 "&2 %s"
  58. IDS_MC_RECORDING "&Recording Levels..."
  59. IDS_MC_LEVEL "&Levels..."
  60. END
  61. /* Main app menu */
  62. IDR_MIXERMENU MENU PRELOAD
  63. BEGIN
  64. POPUP "O&ptions"
  65. BEGIN
  66. MENUITEM "P&roperties", IDM_PROPERTIES
  67. MENUITEM "&Advanced Controls", IDM_ADVANCED
  68. MENUITEM SEPARATOR
  69. MENUITEM "E&xit", IDM_EXIT
  70. END
  71. POPUP "&Help"
  72. BEGIN
  73. MENUITEM "&Help Topics", IDM_HELPTOPICS
  74. MENUITEM SEPARATOR
  75. MENUITEM "&About Volume Control", IDM_HELPABOUT
  76. END
  77. END
  78. IDR_VOLUMEACCEL ACCELERATORS PRELOAD
  79. BEGIN
  80. "^s", IDM_SMALLMODESWITCH
  81. VK_F1, IDM_HELPTOPICS, VIRTKEY
  82. END
  83. /* Mixerline dialog templates */
  84. IDD_DESTINATION DIALOG DISCARDABLE 0, 0, 90, 150
  85. STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_OVERLAPPED | WS_BORDER | WS_MINIMIZEBOX | DS_3DLOOK
  86. CAPTION "Volume Control"
  87. CLASS "Volume Control"
  88. MENU IDR_MIXERMENU
  89. FONT 8, "MS Shell Dlg"
  90. BEGIN
  91. CONTROL IDI_LSPEAKER,IDC_MASTER_BALANCE_ICON_1,"Static",SS_ICON,13,37,16,16
  92. CONTROL IDI_RSPEAKER,IDC_MASTER_BALANCE_ICON_2,"Static",SS_ICON,66,37,16,16
  93. CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,4,19,82,1
  94. LTEXT "Master",IDC_LINELABEL,4,7,49,8,SS_LEFT|WS_GROUP //, WS_EX_TRANSPARENT
  95. LTEXT "Balance:",IDC_MASTER_BALANCE_TEXT,4,25,30,8
  96. LTEXT "Volume:",IDC_STATIC,4,58,36,8
  97. LTEXT "%s Balance:", IDC_ACCESS_BALANCE,4,25,35,8, NOT WS_VISIBLE // Added for Accessibility
  98. CONTROL "",IDC_BALANCE,TRACKBAR_CLASS,WS_TABSTOP | TBS_HORZ | TBS_DOWNISLEFT |
  99. TBS_BOTTOM | TBS_AUTOTICKS,25,35,40,17
  100. CONTROL "&Speaker Volume...",IDC_MULTICHANNEL, "Button", WS_TABSTOP |
  101. NOT WS_VISIBLE | WS_DISABLED | BS_MULTILINE, 4,32,70,14
  102. LTEXT "%s Volume:",IDC_ACCESS_VOLUME,4,58,36,8, NOT WS_VISIBLE // Added for Accessibility
  103. CONTROL "",IDC_VOLUME,TRACKBAR_CLASS, WS_TABSTOP | TBS_REVERSED | TBS_VERT | TBS_DOWNISLEFT |
  104. TBS_BOTH | TBS_AUTOTICKS, 32,67,30,56
  105. CONTROL "",IDC_VUMETER,VUMETER_CLASS, WS_CHILD, 51,72,10,47
  106. CONTROL "&Mute all",IDC_SWITCH,"Button",BS_AUTOCHECKBOX |
  107. WS_TABSTOP,4,123,55,12
  108. CONTROL "&Advanced",IDC_ADVANCED, "Button", WS_TABSTOP |
  109. NOT WS_VISIBLE, 4, 123+15,80,14
  110. CONTROL "",IDC_BORDER,"Static",SS_ETCHEDVERT,91,1,1,148
  111. END
  112. IDD_SOURCE DIALOG DISCARDABLE 0, 0, 70, 150
  113. STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_OVERLAPPED | WS_BORDER | WS_MINIMIZEBOX | DS_3DLOOK
  114. CLASS "Volume Control"
  115. MENU IDR_MIXERMENU
  116. FONT 8, "MS Shell Dlg"
  117. BEGIN
  118. CONTROL IDI_LSPEAKER,IDC_STATIC,"Static",SS_ICON,5,37,16,16
  119. CONTROL IDI_RSPEAKER,IDC_STATIC,"Static",SS_ICON,58,37,16,16
  120. CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,7,19,73,1
  121. // CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,31,11,25,1
  122. LTEXT "Line",IDC_LINELABEL,7,7,49,8, SS_LEFT // , WS_EX_TRANSPARENT
  123. LTEXT "Balance:",IDC_STATIC,7,25,30,8
  124. LTEXT "Volume:",IDC_STATIC,7,58,36,8
  125. LTEXT "%s Balance:",IDC_ACCESS_BALANCE,4625,30,8, NOT WS_VISIBLE // Added for Accessibility
  126. CONTROL "",IDC_BALANCE,TRACKBAR_CLASS,WS_TABSTOP | TBS_HORZ | TBS_DOWNISLEFT |
  127. TBS_BOTTOM | TBS_AUTOTICKS,17,35,40,17
  128. LTEXT "%s Volume:",IDC_ACCESS_VOLUME,7,58,36,8, NOT WS_VISIBLE // Added for Accessibility
  129. CONTROL "",IDC_VOLUME,TRACKBAR_CLASS, WS_TABSTOP | TBS_REVERSED | TBS_VERT | TBS_DOWNISLEFT |
  130. TBS_BOTH | TBS_AUTOTICKS, 24,67,25,56
  131. // h = 58 is perfect w/8pp rect
  132. CONTROL "",IDC_VUMETER,VUMETER_CLASS, WS_CHILD, 41,72,10,47
  133. CONTROL "&Mute",IDC_SWITCH,"Button",BS_AUTOCHECKBOX |
  134. WS_TABSTOP,7,123,55,12
  135. CONTROL "&Advanced",IDC_ADVANCED, "Button", WS_TABSTOP |
  136. NOT WS_VISIBLE, 7, 123+15,55,14
  137. CONTROL "",IDC_BORDER,"Static",SS_ETCHEDVERT,71,25,1,128
  138. END
  139. IDD_ADVANCED DIALOG DISCARDABLE 0, 0, 255, 140
  140. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_3DLOOK
  141. Caption "Advanced Controls for Volume Control"
  142. FONT 8, "MS Shell Dlg"
  143. BEGIN
  144. CONTROL IDI_MIXER, IDC_STATIC, "Static", SS_ICON, 7, 7, 32, 32
  145. LTEXT "These settings can be used to make fine adjustments to your audio.", IDC_STATIC, 7+32+5, 7, 200, 32
  146. GROUPBOX "Tone Controls", IDC_GRP_TONE, 7, 33, 240, 66+14
  147. LTEXT "These settings control how the tone of your audio sounds.", IDC_STATIC, 17, 48, 200, 14
  148. LTEXT "&Bass:",IDC_STATIC,17,48+14,50,8
  149. LTEXT "Low", IDC_TXT_LOW1,97-20,48+14,20,8
  150. LTEXT "High", IDC_TXT_HI1,182,48+14,20, 8
  151. CONTROL "",IDC_BASS,TRACKBAR_CLASS, WS_TABSTOP | TBS_HORZ | TBS_DOWNISLEFT |
  152. TBS_BOTTOM | TBS_AUTOTICKS, 117-20,48+14,60+20,20
  153. LTEXT "&Treble:",IDC_STATIC,17,76+14,50,8
  154. LTEXT "Low", IDC_TXT_LOW2,97-20,76+14,20,8
  155. LTEXT "High", IDC_TXT_HI2,182,76+14,20,8
  156. CONTROL "",IDC_TREBLE,TRACKBAR_CLASS, WS_TABSTOP | TBS_HORZ | TBS_DOWNISLEFT |
  157. TBS_BOTTOM | TBS_AUTOTICKS, 117-20,76+14,60+20,20
  158. //
  159. // Inexplicable controls we don't have information about
  160. //
  161. GROUPBOX "Other Controls", IDC_GRP_OTHER, 7, 105+14, 240, 66,
  162. NOT WS_VISIBLE
  163. LTEXT "These settings make other changes to how your audio sounds. See your hardware documentation for details.",
  164. IDC_TXT_SWITCHES, 17, 105+15+15, 220, 28, NOT WS_VISIBLE
  165. CONTROL "&1 ",IDC_SWITCH1,"Button",BS_AUTOCHECKBOX |
  166. WS_TABSTOP | NOT WS_VISIBLE,17,105+14+15+15+10,220,14
  167. CONTROL "&2 ",IDC_SWITCH2,"Button",BS_AUTOCHECKBOX |
  168. WS_TABSTOP | NOT WS_VISIBLE,17,120+14+15+15+10,220,14
  169. DEFPUSHBUTTON "Close",IDOK, 247-50, 120, 50, 14, WS_GROUP
  170. END
  171. /* Chooser dialog */
  172. IDD_PROPERTIES DIALOG DISCARDABLE 0, 0, 224, 250
  173. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_3DLOOK | DS_CONTEXTHELP
  174. Caption "Properties"
  175. FONT 8, "MS Shell Dlg"
  176. BEGIN
  177. LTEXT "&Mixer device:", IDC_PROP_TXT1, 7, 8, 48, 9
  178. COMBOBOX IDC_PROP_DEVICELIST, 55, 8, 162, 80, CBS_DROPDOWNLIST |
  179. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  180. GROUPBOX "Adjust volume for", IDC_PROP_VOLUMES, 7, 25, 211, 77
  181. CONTROL "&Playback", IDC_PROP_PLAYBACK,"Button",
  182. BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,
  183. 13, 43, 47, 8
  184. CONTROL "&Recording", IDC_PROP_RECORDING,"Button",
  185. BS_AUTORADIOBUTTON, 13, 61, 47, 8
  186. CONTROL "&Other", IDC_PROP_OTHER,"Button", BS_AUTORADIOBUTTON,
  187. 13, 80, 42, 8
  188. COMBOBOX IDC_PROP_OTHERLIST, 55, 80, 155, 50, CBS_DROPDOWNLIST |
  189. WS_VSCROLL | WS_TABSTOP | WS_GROUP
  190. LTEXT "Show the following volume controls:", IDC_PROP_TXT2,
  191. 7, 109, 162, 8
  192. CONTROL "",IDC_PROP_VOLUMELIST, WC_LISTVIEW, LVS_REPORT |
  193. WS_BORDER | LVS_NOCOLUMNHEADER | WS_TABSTOP,
  194. 7, 122, 211, 96
  195. DEFPUSHBUTTON "OK",IDOK, 114, 226, 50, 14, WS_GROUP
  196. PUSHBUTTON "Cancel",IDCANCEL, 168, 226, 50, 14
  197. END
  198. /* Tray Volume */
  199. IDD_TRAYMASTER DIALOG DISCARDABLE 0, 0, 50, 80
  200. EXSTYLE WS_EX_TOOLWINDOW
  201. STYLE DS_MODALFRAME | WS_POPUP | NOT WS_VISIBLE | DS_3DLOOK
  202. CLASS "Tray Volume"
  203. FONT 8, "MS Shell Dlg"
  204. BEGIN
  205. CTEXT "Volume", IDC_TRAYLABEL, 0, 4, 50, 8
  206. CONTROL "", IDC_VOLUMECUE, "Static", SS_BITMAP,
  207. 5, 19, 7, 45, NOT WS_VISIBLE
  208. CONTROL "",IDC_VOLUME,TRACKBAR_CLASS, WS_TABSTOP | TBS_REVERSED | TBS_VERT | TBS_DOWNISLEFT |
  209. TBS_BOTH | TBS_NOTICKS, 16, 15, 20, 50
  210. CONTROL "&Mute",IDC_SWITCH,"Button", BS_AUTOCHECKBOX | WS_TABSTOP,
  211. 4,70,60,8
  212. END
  213. /* Supplemental Small Volume */
  214. IDD_SMDST DIALOG DISCARDABLE 0, 0, 45, 85+15
  215. STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_OVERLAPPED | WS_BORDER | WS_MINIMIZEBOX | DS_3DLOOK
  216. MENU IDR_MIXERMENU
  217. CLASS "Volume Control"
  218. FONT 8, "MS Shell Dlg"
  219. BEGIN
  220. CTEXT "Volume", IDC_LINELABEL, 4, 3, 35, 8
  221. CONTROL "",IDC_BALANCE,TRACKBAR_CLASS, WS_TABSTOP | TBS_HORZ | TBS_DOWNISLEFT |
  222. TBS_BOTTOM | TBS_AUTOTICKS, 2, 12, 42-3, 18
  223. CONTROL "",IDC_VOLUME,TRACKBAR_CLASS, WS_TABSTOP | TBS_REVERSED | TBS_VERT | TBS_DOWNISLEFT |
  224. TBS_BOTH | TBS_AUTOTICKS, 8, 15+15, 30, 50
  225. CONTROL "&Mute all",IDC_SWITCH,"Button", BS_AUTOCHECKBOX | WS_TABSTOP,
  226. 2,70+15,45-3,8
  227. CONTROL "",IDC_STATIC,"Static",SS_ETCHEDVERT,45,1,1,85+15
  228. END
  229. IDD_SMSRC DIALOG DISCARDABLE 0, 0, 42, 85+15
  230. STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_OVERLAPPED | WS_BORDER | WS_MINIMIZEBOX | DS_3DLOOK
  231. MENU IDR_MIXERMENU
  232. CLASS "Volume Control"
  233. FONT 8, "MS Shell Dlg"
  234. BEGIN
  235. CTEXT "Volume", IDC_LINELABEL, 2, 3, 42-3, 8
  236. CONTROL "",IDC_BALANCE,TRACKBAR_CLASS, WS_TABSTOP | TBS_HORZ | TBS_DOWNISLEFT |
  237. TBS_BOTTOM | TBS_AUTOTICKS, 2, 12, 42-3, 18
  238. CONTROL "",IDC_VOLUME,TRACKBAR_CLASS, WS_TABSTOP | TBS_REVERSED | TBS_VERT | TBS_DOWNISLEFT |
  239. TBS_BOTH | TBS_AUTOTICKS, 8, 15+15, 30, 50
  240. CONTROL "&Mute",IDC_SWITCH,"Button", BS_AUTOCHECKBOX | WS_TABSTOP,
  241. 3,70+15,40-4,8
  242. CONTROL "",IDC_STATIC,"Static",SS_ETCHEDVERT,42,1,1,85+15
  243. END