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.

612 lines
21 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1994 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // acmapp.rc
  13. //
  14. // Description:
  15. // This is a sample application that demonstrates how to use the
  16. // Audio Compression Manager API's in Windows. This application is
  17. // also useful as an ACM CODEC driver test.
  18. //
  19. //==========================================================================;
  20. #include <windows.h>
  21. #include "acmapp.h"
  22. #include "acmapp.rcv"
  23. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  24. //
  25. // Misc resources
  26. //
  27. //
  28. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  29. ICON_APP ICON acmapp.ico
  30. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  31. //
  32. // Application menu
  33. //
  34. //
  35. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  36. MENU_APP MENU
  37. BEGIN
  38. POPUP "&File"
  39. BEGIN
  40. MENUITEM "&New\tCtrl+N", IDM_FILE_NEW
  41. MENUITEM "&Open...\tCtrl+O", IDM_FILE_OPEN
  42. MENUITEM "&Save\tCtrl+S", IDM_FILE_SAVE
  43. MENUITEM "Save &As...\tCtrl+A", IDM_FILE_SAVEAS
  44. MENUITEM SEPARATOR
  45. POPUP "snd&PlaySound"
  46. BEGIN
  47. MENUITEM "&Play\tCtrl+G", IDM_FILE_SNDPLAYSOUND_PLAY
  48. MENUITEM "&Stop\tCtrl+H", IDM_FILE_SNDPLAYSOUND_STOP
  49. END
  50. MENUITEM SEPARATOR
  51. MENUITEM "&Convert...\tCtrl+Q", IDM_FILE_CONVERT
  52. MENUITEM SEPARATOR
  53. MENUITEM "A&bout...", IDM_FILE_ABOUT
  54. MENUITEM "E&xit\tAlt+F4", IDM_FILE_EXIT
  55. END
  56. POPUP "&Edit"
  57. BEGIN
  58. MENUITEM "&Copy\tCtrl+C", WM_COPY
  59. MENUITEM SEPARATOR
  60. MENUITEM "Select &All", IDM_EDIT_SELECTALL
  61. END
  62. POPUP "&View"
  63. BEGIN
  64. MENUITEM "&System Information..", IDM_VIEW_SYSTEMINFO
  65. MENUITEM "&ACM Drivers...\tCtrl+K", IDM_VIEW_ACM_DRIVERS
  66. END
  67. MENUITEM "&Player!", IDM_PLAYRECORD, GRAYED
  68. POPUP "&Options"
  69. BEGIN
  70. POPUP "&Wave Device"
  71. BEGIN
  72. MENUITEM "&Input...", IDM_OPTIONS_WAVEINDEVICE
  73. MENUITEM "&Output...", IDM_OPTIONS_WAVEOUTDEVICE
  74. END
  75. MENUITEM SEPARATOR
  76. MENUITEM "&Auto-Open Output\tCtrl+W", IDM_OPTIONS_AUTOOPEN
  77. MENUITEM "Debug &Log\tCtrl+L", IDM_OPTIONS_DEBUGLOG
  78. MENUITEM SEPARATOR
  79. MENUITEM "&Font...\tCtrl+F", IDM_OPTIONS_FONT
  80. END
  81. MENUITEM "&Update!", IDM_UPDATE
  82. END
  83. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  84. //
  85. // Accelerator table
  86. //
  87. //
  88. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  89. ACCEL_APP ACCELERATORS
  90. BEGIN
  91. "^N", IDM_FILE_NEW
  92. "^O", IDM_FILE_OPEN
  93. "^S", IDM_FILE_SAVE
  94. "^A", IDM_FILE_SAVEAS
  95. "^G", IDM_FILE_SNDPLAYSOUND_PLAY
  96. "^H", IDM_FILE_SNDPLAYSOUND_STOP
  97. "^Q", IDM_FILE_CONVERT
  98. "^K", IDM_VIEW_ACM_DRIVERS
  99. "^P", IDM_PLAYRECORD
  100. "^W", IDM_OPTIONS_AUTOOPEN
  101. "^L", IDM_OPTIONS_DEBUGLOG
  102. END
  103. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  104. //
  105. // String resources
  106. //
  107. //
  108. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  109. STRINGTABLE MOVEABLE DISCARDABLE
  110. BEGIN
  111. IDS_APP_NAME, "ACM App"
  112. IDS_FILE_UNTITLED, "(Untitled)"
  113. IDS_OFN_EXT_DEF, "wav"
  114. IDS_OFN_EXT_FILTER, "Wave File (*.wav)!*.wav!All Files (*.*)!*.*!!"
  115. //
  116. //
  117. //
  118. //
  119. IDS_ERROR_ACM_NOT_PRESENT, "The Audio Compression Manager (ACM) is not installed on this system. Most features of this application will not be available."
  120. IDS_ERROR_ACM_TOO_OLD, "This application requires Version 2.00 or greater of the Audio Compression Manager (ACM). The version installed on this system is Version %u.%.02u. Most features of this application will not be available."
  121. IDS_ERROR_OPEN_FAILED, "Cannot open '%s' as a Wave file!"
  122. END
  123. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  124. //
  125. // Application dialogs
  126. //
  127. //
  128. //
  129. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  130. //
  131. // DLG_AADRAGDROP
  132. //
  133. //
  134. //
  135. DLG_AADRAGDROP DIALOG DISCARDABLE 0, -40, 107, 18
  136. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  137. CAPTION "Drag/Drop"
  138. FONT 8, "MS Sans Serif"
  139. BEGIN
  140. DEFPUSHBUTTON "&Next", IDOK, 2, 2, 50, 14
  141. PUSHBUTTON "&Stop", IDCANCEL, 55, 2, 50, 14
  142. END
  143. //
  144. // DLG_AADETAILS
  145. //
  146. //
  147. //
  148. DLG_AADETAILS DIALOG 10, 20, 260, 150
  149. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  150. CAPTION "Details"
  151. FONT 8, "MS Sans Serif"
  152. BEGIN
  153. DEFPUSHBUTTON "OK", IDOK, 218, 3, 40, 14
  154. EDITTEXT IDD_AADETAILS_EDIT_DETAILS, 2, 20, 256, 128,
  155. ES_MULTILINE | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL | WS_HSCROLL
  156. END
  157. //
  158. // DLG_AADRIVERS
  159. //
  160. //
  161. //
  162. DLG_AADRIVERS DIALOG LOADONCALL MOVEABLE DISCARDABLE 10, 20, 333, 120
  163. STYLE DS_MODALFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP | DS_LOCALEDIT
  164. CAPTION "ACM Drivers"
  165. FONT 8, "MS Sans Serif"
  166. BEGIN
  167. DEFPUSHBUTTON "OK", IDOK, 289, 2, 43, 14, WS_GROUP
  168. LTEXT "", IDD_AADRIVERS_STATIC_POSITION, 2, 18, 329, 100
  169. PUSHBUTTON "&Details", IDD_AADRIVERS_BTN_DETAILS, 2, 2, 38, 14, WS_GROUP
  170. PUSHBUTTON "&Formats", IDD_AADRIVERS_BTN_FORMATS, 42, 2, 38, 14
  171. PUSHBUTTON "F&ilters", IDD_AADRIVERS_BTN_FILTERS, 82, 2, 38, 14
  172. PUSHBUTTON "&About", IDD_AADRIVERS_BTN_ABOUT, 122, 2, 38, 14
  173. PUSHBUTTON "&Config", IDD_AADRIVERS_BTN_CONFIG, 162, 2, 38, 14
  174. PUSHBUTTON "A&ble!", IDD_AADRIVERS_BTN_ABLE, 202, 2, 38, 14
  175. PUSHBUTTON "&To Top!", IDD_AADRIVERS_BTN_TOTOP, 242, 2, 38, 14
  176. END
  177. //
  178. // DLG_AADRIVERFORMATS
  179. //
  180. //
  181. //
  182. DLG_AADRIVERFORMATS DIALOG LOADONCALL MOVEABLE DISCARDABLE 10, 20, 250, 120
  183. STYLE DS_MODALFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP | DS_LOCALEDIT
  184. CAPTION "ACM Driver Formats"
  185. FONT 8, "MS Sans Serif"
  186. BEGIN
  187. CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_CHILD, 213, 2, 35, 14
  188. CONTROL "", IDD_AADRIVERFORMATS_STATIC_POSITION, "static", WS_CHILD, 2, 18, 246, 100
  189. CONTROL "&Details", IDD_AADRIVERFORMATS_BTN_DETAILS, "button", BS_PUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_CHILD, 2, 2, 35, 14
  190. END
  191. //
  192. // DLG_AAWAVEDEVICE
  193. //
  194. //
  195. //
  196. DLG_AAWAVEDEVICE DIALOG DISCARDABLE 10, 20, 260, 185
  197. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  198. CAPTION "Wave Device Selection"
  199. FONT 8, "MS Sans Serif"
  200. BEGIN
  201. LTEXT "&Device:", -1, 2, 8, 30, 8
  202. COMBOBOX IDD_AAWAVEDEVICE_COMBO_DEVICE, 41, 5, 165, 68,
  203. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  204. DEFPUSHBUTTON "OK", IDOK, 213, 4, 43, 15
  205. LTEXT "&Capabilities:", -1, 2, 27, 77, 8
  206. EDITTEXT IDD_AAWAVEDEVICE_EDIT_CAPABILITIES, 2, 38, 256, 144,
  207. ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL
  208. END
  209. //
  210. // DLG_ABOUT
  211. //
  212. //
  213. //
  214. DLG_ABOUT DIALOG LOADONCALL MOVEABLE DISCARDABLE 10, 20, 200, 115
  215. STYLE DS_MODALFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP | DS_LOCALEDIT
  216. CAPTION "About ACM App"
  217. FONT 8, "MS Sans Serif"
  218. BEGIN
  219. CONTROL APP_VERSION_DESCRIPTION_RC, -1, "static", SS_LEFT | WS_CHILD, 30, 5, 165, 8
  220. CONTROL APP_VERSION_STRING_RC, -1, "static", SS_LEFT | WS_CHILD, 30, 14, 165, 8
  221. CONTROL "for:", -1, "static", SS_LEFT | WS_CHILD, 30, 23, 15, 8
  222. CONTROL APP_VERSION_PRODUCTNAME_RC, -1, "static", SS_LEFT | WS_CHILD, 45, 23, 150, 8
  223. CONTROL APP_VERSION_COPYRIGHT_RC, -1, "static", SS_LEFT | WS_CHILD, 30, 32, 165, 8
  224. CONTROL APP_VERSION_BYLINE_RC, -1, "static", SS_LEFT | WS_CHILD, 30, 42, 165, 8
  225. CONTROL "", -1, "static", WS_BORDER | WS_CHILD, 0, 56, 200, 1
  226. CONTROL "Environment:", -1, "static", SS_LEFT | WS_CHILD, 5, 62, 45, 8
  227. CONTROL "", IDD_ABOUT_VERSION_OS, "static", SS_LEFT | WS_CHILD, 50, 62, 145, 20
  228. CONTROL "Platform:", -1, "static", SS_LEFT | WS_CHILD, 5, 82, 45, 8
  229. CONTROL "", IDD_ABOUT_VERSION_PLATFORM, "static", SS_LEFT | WS_CHILD, 50, 82, 145, 8
  230. CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_CHILD, 82, 96, 35, 14
  231. CONTROL ICON_APP, -1, "static", SS_ICON | WS_CHILD, 5, 5, 0, 0
  232. END
  233. //
  234. // DLG_AACHOOSER
  235. //
  236. //
  237. //
  238. DLG_AACHOOSER DIALOG DISCARDABLE 10, 20, 290, 200
  239. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  240. CAPTION "File Convert Stuff"
  241. FONT 8, "MS Sans Serif"
  242. BEGIN
  243. DEFPUSHBUTTON "OK", IDOK, 235, 6, 50, 14
  244. PUSHBUTTON "Cancel", IDCANCEL, 235, 23, 50, 14
  245. LTEXT "Input File:", -1, 5, 10, 55, 10
  246. LTEXT "", IDD_AACHOOSER_TXT_FILE_INPUT, 61, 10, 170, 12
  247. LTEXT "Input Format:", -1, 5, 22, 55, 10
  248. LTEXT "", IDD_AACHOOSER_TXT_FORMAT_INPUT, 61, 22, 170, 20
  249. LTEXT "&Output File:", -1, 5, 50, 55, 10
  250. EDITTEXT IDD_AACHOOSER_EDIT_FILE_OUTPUT, 61, 48, 170, 12, ES_AUTOHSCROLL
  251. PUSHBUTTON "&Browse...", IDD_AACHOOSER_BTN_BROWSE, 235, 47, 50, 14
  252. LTEXT "ACM &Driver:", -1, 5, 70, 55, 10
  253. COMBOBOX IDD_AACHOOSER_COMBO_DRIVER, 61, 68, 170, 68,
  254. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  255. PUSHBUTTON "&Size...", IDD_AACHOOSER_BTN_PROPERTIES, 235, 67, 50, 14
  256. LTEXT "Output Format:", -1, 5, 88, 55, 10
  257. LTEXT "", IDD_AACHOOSER_TXT_FORMAT, 61, 88, 170, 20
  258. PUSHBUTTON "&Format...", IDD_AACHOOSER_BTN_FORMAT, 235, 87, 38, 14
  259. PUSHBUTTON "!", IDD_AACHOOSER_BTN_FORMAT_OPTIONS, 275, 87, 10, 14
  260. CONTROL "&Apply Filter:", IDD_AACHOOSER_CHECK_FILTER,
  261. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 109, 55, 10
  262. LTEXT "", IDD_AACHOOSER_TXT_FILTER, 61, 110, 170, 10
  263. PUSHBUTTON "Fi&lter...",IDD_AACHOOSER_BTN_FILTER, 235, 107, 38, 14
  264. PUSHBUTTON "!", IDD_AACHOOSER_BTN_FILTER_OPTIONS, 275, 107, 10, 14
  265. CONTROL "ACM_STREAMOPENF_NON&REALTIME", IDD_AACHOOSER_CHECK_NONREALTIME,
  266. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 125, 155, 10
  267. CONTROL "ACM_STREAMOPENF_AS&YNC", IDD_AACHOOSER_CHECK_ASYNC,
  268. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 137, 155, 10
  269. LTEXT "Convert Si&ze (seconds):", -1, 165, 125, 90, 10
  270. RTEXT "Bunny", IDD_AACHOOSER_TXT_TIME, 255, 125, 30, 10
  271. SCROLLBAR IDD_AACHOOSER_SCROLL_TIME, 165, 137, 120, 10,
  272. SBS_HORZ | SBS_TOPALIGN | WS_TABSTOP
  273. CONTROL "", -1, "Static", SS_BLACKFRAME, 0, 153, 290, 1
  274. EDITTEXT IDD_AACHOOSER_EDIT_DETAILS, 3, 157, 284, 40,
  275. ES_MULTILINE | ES_AUTOHSCROLL | ES_READONLY
  276. END
  277. //
  278. // DLG_AAPROPERTIES
  279. //
  280. //
  281. //
  282. DLG_AAPROPERTIES DIALOG DISCARDABLE 10, 20, 211, 52
  283. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  284. CAPTION "Stream Size Thingy"
  285. FONT 8, "MS Sans Serif"
  286. BEGIN
  287. DEFPUSHBUTTON "OK", IDOK, 164, 5, 42, 14
  288. PUSHBUTTON "Cancel", IDCANCEL, 164, 22, 42, 14
  289. LTEXT "&Source:", -1, 3, 12, 50, 10
  290. COMBOBOX IDD_AAPROPERTIES_COMBO_SOURCE, 56, 9, 78, 60,
  291. CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
  292. PUSHBUTTON "!", IDD_AAPROPERTIES_BTN_SOURCE, 138, 8, 13, 14
  293. LTEXT "&Destination:", -1, 3, 33, 50, 10
  294. COMBOBOX IDD_AAPROPERTIES_COMBO_DESTINATION, 56, 30, 78, 60,
  295. CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
  296. PUSHBUTTON "!", IDD_AAPROPERTIES_BTN_DESTINATION, 138, 29, 13, 14
  297. END
  298. //
  299. // DLG_AAFORMATSTYLE
  300. //
  301. //
  302. //
  303. DLG_AAFORMATSTYLE DIALOG DISCARDABLE 10, 20, 285, 85
  304. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  305. CAPTION "Format Choose Style Flags"
  306. FONT 8, "MS Sans Serif"
  307. BEGIN
  308. DEFPUSHBUTTON "OK", IDOK, 233, 5, 45, 14
  309. PUSHBUTTON "Cancel", IDCANCEL, 233, 22, 45, 14
  310. CONTROL "ACMFORMATCHOOSE_STYLEF_SHOWHELP", IDD_AAFORMATSTYLE_CHECK_SHOWHELP
  311. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 6, 220, 10
  312. CONTROL "ACMFORMATCHOOSE_STYLEF_ENABLEHOOK", IDD_AAFORMATSTYLE_CHECK_ENABLEHOOK,
  313. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 19, 220, 10
  314. CONTROL "ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE", IDD_AAFORMATSTYLE_CHECK_ENABLETEMPLATE,
  315. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 32, 220, 10
  316. CONTROL "ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE", IDD_AAFORMATSTYLE_CHECK_ENABLETEMPLATEHANDLE,
  317. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 46, 220, 10
  318. CONTROL "ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT", IDD_AAFORMATSTYLE_CHECK_INITTOWFXSTRUCT,
  319. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 60, 220, 10
  320. END
  321. //
  322. // DLG_AAFILTERSTYLE
  323. //
  324. //
  325. //
  326. DLG_AAFILTERSTYLE DIALOG DISCARDABLE 10, 20, 285, 85
  327. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  328. CAPTION "Filter Choose Style Flags"
  329. FONT 8, "MS Sans Serif"
  330. BEGIN
  331. DEFPUSHBUTTON "OK", IDOK, 233, 5, 45, 14
  332. PUSHBUTTON "Cancel", IDCANCEL, 233, 22, 45, 14
  333. CONTROL "ACMFILTERCHOOSE_STYLEF_SHOWHELP", IDD_AAFILTERSTYLE_CHECK_SHOWHELP
  334. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 6, 220, 10
  335. CONTROL "ACMFILTERCHOOSE_STYLEF_ENABLEHOOK", IDD_AAFILTERSTYLE_CHECK_ENABLEHOOK,
  336. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 19, 220, 10
  337. CONTROL "ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATE", IDD_AAFILTERSTYLE_CHECK_ENABLETEMPLATE,
  338. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 32, 220, 10
  339. CONTROL "ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATEHANDLE", IDD_AAFILTERSTYLE_CHECK_ENABLETEMPLATEHANDLE,
  340. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 46, 220, 10
  341. CONTROL "ACMFILTERCHOOSE_STYLEF_INITTOFILTERSTRUCT", IDD_AAFILTERSTYLE_CHECK_INITTOFILTERSTRUCT,
  342. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 60, 220, 10
  343. END
  344. //
  345. // DLG_AAFORMATENUM
  346. //
  347. //
  348. //
  349. DLG_AAFORMATENUM DIALOG DISCARDABLE 10, 20, 235, 138
  350. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  351. CAPTION "Format Enum Flags"
  352. FONT 8, "MS Sans Serif"
  353. BEGIN
  354. DEFPUSHBUTTON "OK", IDOK, 183, 5, 45, 14
  355. PUSHBUTTON "Cancel", IDCANCEL, 183, 22, 45, 14
  356. CONTROL "ACM_FORMATENUMF_CONVERT", IDD_AAFORMATENUM_CHECK_CONVERT
  357. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 6, 170, 10
  358. CONTROL "ACM_FORMATENUMF_SUGGEST", IDD_AAFORMATENUM_CHECK_SUGGEST,
  359. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 19, 170, 10
  360. CONTROL "ACM_FORMATENUMF_HARDWARE", IDD_AAFORMATENUM_CHECK_HARDWARE,
  361. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 32, 170, 10
  362. CONTROL "ACM_FORMATENUMF_INPUT", IDD_AAFORMATENUM_CHECK_INPUT,
  363. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 46, 170, 10
  364. CONTROL "ACM_FORMATENUMF_OUTPUT", IDD_AAFORMATENUM_CHECK_OUTPUT,
  365. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 60, 170, 10
  366. CONTROL "ACM_FORMATENUMF_WFORMATTAG", IDD_AAFORMATENUM_CHECK_WFORMATTAG,
  367. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 75, 170, 10
  368. EDITTEXT IDD_AAFORMATENUM_EDIT_WFORMATTAG, 180, 74, 50, 12, ES_AUTOHSCROLL
  369. CONTROL "ACM_FORMATENUMF_NCHANNELS", IDD_AAFORMATENUM_CHECK_NCHANNELS,
  370. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 91, 170, 10
  371. EDITTEXT IDD_AAFORMATENUM_EDIT_NCHANNELS, 180, 90, 50, 12, ES_AUTOHSCROLL
  372. CONTROL "ACM_FORMATENUMF_NSAMPLESPERSEC", IDD_AAFORMATENUM_CHECK_NSAMPLESPERSEC,
  373. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 107, 170, 10
  374. EDITTEXT IDD_AAFORMATENUM_EDIT_NSAMPLESPERSEC, 180, 106, 50, 12, ES_AUTOHSCROLL
  375. CONTROL "ACM_FORMATENUMF_WBITSPERSAMPLE", IDD_AAFORMATENUM_CHECK_WBITSPERSAMPLE,
  376. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 123, 170, 10
  377. EDITTEXT IDD_AAFORMATENUM_EDIT_WBITSPERSAMPLE, 180, 122, 50, 12, ES_AUTOHSCROLL
  378. END
  379. //
  380. // DLG_AAFILTERENUM
  381. //
  382. //
  383. //
  384. DLG_AAFILTERENUM DIALOG DISCARDABLE 10, 20, 235, 138
  385. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  386. CAPTION "Filter Enum Flags"
  387. FONT 8, "MS Sans Serif"
  388. BEGIN
  389. DEFPUSHBUTTON "OK", IDOK, 183, 5, 45, 14
  390. PUSHBUTTON "Cancel", IDCANCEL, 183, 22, 45, 14
  391. CONTROL "ACM_FILTERENUMF_DWFILTERTAG", IDD_AAFILTERENUM_CHECK_DWFILTERTAG,
  392. "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 5, 75, 170, 10
  393. EDITTEXT IDD_AAFILTERENUM_EDIT_DWFILTERTAG, 180, 74, 50, 12, ES_AUTOHSCROLL
  394. END
  395. //
  396. // DLG_AACONVERT
  397. //
  398. //
  399. //
  400. DLG_AACONVERT DIALOG 10, 20, 186, 70
  401. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  402. CAPTION "ACM Convert"
  403. FONT 8, "MS Sans Serif"
  404. BEGIN
  405. DEFPUSHBUTTON "Cancel", IDCANCEL, 75, 48, 40, 14
  406. RTEXT "Input:", -1, 7, 8, 36, 8
  407. LTEXT "", IDD_AACONVERT_TXT_INFILEPATH, 44, 8, 138, 11
  408. RTEXT "Output:", -1, 7, 20, 36, 8
  409. LTEXT "", IDD_AACONVERT_TXT_OUTFILEPATH, 44, 20, 138, 11
  410. RTEXT "Status:", -1, 7, 33, 36, 8
  411. LTEXT "", IDD_AACONVERT_TXT_STATUS, 44, 33, 30, 11
  412. END
  413. //
  414. // DLG_AAPLAYRECORD
  415. //
  416. //
  417. //
  418. DLG_AAPLAYRECORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 10, 20, 225, 105
  419. STYLE DS_MODALFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP | DS_LOCALEDIT
  420. CAPTION "MCI Wave Player"
  421. FONT 8, "MS Sans Serif"
  422. BEGIN
  423. LTEXT "&Command:", -1, 2, 56, 38, 8, WS_GROUP
  424. COMBOBOX IDD_AAPLAYRECORD_EDIT_COMMAND, 39, 54, 150, 64,
  425. CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
  426. DEFPUSHBUTTON "&Send", IDOK, 192, 53, 31, 14
  427. EDITTEXT IDD_AAPLAYRECORD_EDIT_RESULT, 2, 70, 221, 33,
  428. ES_MULTILINE | ES_READONLY | WS_VSCROLL
  429. SCROLLBAR IDD_AAPLAYRECORD_SCROLL_POSITION, 2, 3, 221, 10,
  430. SBS_HORZ | SBS_TOPALIGN | WS_TABSTOP
  431. PUSHBUTTON "&Play", IDD_AAPLAYRECORD_BTN_PLAY, 2, 17, 25, 14, WS_GROUP
  432. PUSHBUTTON "P&ause", IDD_AAPLAYRECORD_BTN_PAUSE, 29, 17, 36, 14
  433. PUSHBUTTON "Sto&p", IDD_AAPLAYRECORD_BTN_STOP, 67, 17, 25, 14
  434. PUSHBUTTON "S&tart", IDD_AAPLAYRECORD_BTN_START, 94, 17, 28, 14
  435. PUSHBUTTON "&End", IDD_AAPLAYRECORD_BTN_END, 124, 17, 28, 14
  436. PUSHBUTTON "&Record", IDD_AAPLAYRECORD_BTN_RECORD, 154, 17, 34, 14
  437. PUSHBUTTON "Close", IDCANCEL, 192, 17, 31, 14, WS_GROUP
  438. LTEXT "", IDD_AAPLAYRECORD_TXT_POSITION, 2, 35, 221, 11
  439. CONTROL "", -1, "static", SS_BLACKFRAME, 0, 49, 225, 1
  440. END
  441. //==========================================================================;
  442. //
  443. //
  444. //
  445. //
  446. //
  447. //==========================================================================;
  448. #include <msacmdlg.h>
  449. //
  450. //
  451. //
  452. //
  453. DLG_AAFORMATCHOOSE_TEMPLATE DIALOG DISCARDABLE 10, 20, 225, 100
  454. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  455. CAPTION "Custom Format Selection"
  456. FONT 8, "MS Sans Serif"
  457. BEGIN
  458. LTEXT "&Name:", -1, 5, 5, 115, 8, NOT WS_GROUP
  459. COMBOBOX IDD_ACMFORMATCHOOSE_CMB_CUSTOM, 5, 15, 115, 60,
  460. CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
  461. PUSHBUTTON "&Save As...", IDD_ACMFORMATCHOOSE_BTN_SETNAME, 125, 14, 45, 14
  462. PUSHBUTTON "&Remove", IDD_ACMFORMATCHOOSE_BTN_DELNAME, 175, 14, 45, 14
  463. LTEXT "&Format:", -1, 5, 41, 44, 8, NOT WS_GROUP
  464. COMBOBOX IDD_ACMFORMATCHOOSE_CMB_FORMATTAG, 50, 39, 170, 60,
  465. CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
  466. LTEXT "&Attributes:", -1, 5, 59, 44, 8, NOT WS_GROUP
  467. COMBOBOX IDD_ACMFORMATCHOOSE_CMB_FORMAT, 50, 57, 170, 60,
  468. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP |
  469. CBS_OWNERDRAWFIXED | CBS_HASSTRINGS
  470. DEFPUSHBUTTON "zYz", IDOK, 48, 80, 40, 14
  471. PUSHBUTTON "Cancel", IDCANCEL, 92, 80, 40, 14
  472. PUSHBUTTON "&Help", IDD_ACMFORMATCHOOSE_BTN_HELP, 136, 80, 40, 14
  473. END
  474. //
  475. //
  476. //
  477. //
  478. DLG_AAFILTERCHOOSE_TEMPLATE DIALOG DISCARDABLE 10, 20, 225, 100
  479. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  480. CAPTION "Custom Filter Selection"
  481. FONT 8, "MS Sans Serif"
  482. BEGIN
  483. LTEXT "&Name:", -1, 5, 5, 115, 8, NOT WS_GROUP
  484. COMBOBOX IDD_ACMFILTERCHOOSE_CMB_CUSTOM, 5, 15, 115, 60,
  485. CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
  486. PUSHBUTTON "&Save As...", IDD_ACMFILTERCHOOSE_BTN_SETNAME, 125, 14, 45, 14
  487. PUSHBUTTON "&Remove", IDD_ACMFILTERCHOOSE_BTN_DELNAME, 175, 14, 45, 14
  488. LTEXT "&Filter:", -1, 5, 41, 44, 8, NOT WS_GROUP
  489. COMBOBOX IDD_ACMFILTERCHOOSE_CMB_FILTERTAG, 50, 39, 170, 60,
  490. CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
  491. LTEXT "&Attributes:", -1, 5, 59, 44, 8, NOT WS_GROUP
  492. COMBOBOX IDD_ACMFILTERCHOOSE_CMB_FILTER, 50, 57, 170, 60,
  493. CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP |
  494. CBS_OWNERDRAWFIXED | CBS_HASSTRINGS
  495. DEFPUSHBUTTON "zYz", IDOK, 48, 80, 40, 14
  496. PUSHBUTTON "Cancel", IDCANCEL, 92, 80, 40, 14
  497. PUSHBUTTON "&Help", IDD_ACMFILTERCHOOSE_BTN_HELP, 136, 80, 40, 14
  498. END