home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mmpm21tk.zip / TK / DUET1 / DUET1.H < prev    next >
Text File  |  1993-03-02  |  3KB  |  117 lines

  1. /*************************************************************************
  2.  * File Name    :  duet1.h
  3.  *
  4.  * Description  :  This file contains the definitions used by the Duet
  5.  *                 Player 1 sample program.
  6.  *
  7.  * Concepts     :  n/a
  8.  *
  9.  * MMPM/2 API's :  n/a
  10.  *
  11.  * Required
  12.  *    Files     :  None.
  13.  *
  14.  *
  15.  * Copyright (C) IBM 1991, 1992, 1993
  16.  *************************************************************************/
  17.  
  18. #define NUM_DUETS          3
  19. #define NUM_PARTS          2
  20.  
  21. #define INIT_VOLUME        75
  22.  
  23. #define ID_MESSAGEBOX      1
  24.  
  25. #define ID_AUDIOHELP       100
  26.  
  27. #define ID_SL_VOLUME       265
  28. #define ID_TEXT_VOLUME     264
  29. #define ID_GPB_STOP        263
  30. #define ID_GPB_PAUSE       262
  31. #define ID_GPB_PLAY        261
  32. #define ID_TEXT_DUET       260
  33. #define ID_LB_DUET         259
  34. #define ID_PB_HELP         258
  35. #define ID_PB_CANCEL       257
  36. #define ID_DLG_MAIN        100
  37.  
  38. #define ID_ICON            100
  39.  
  40.  
  41. #define ID_DUET_HELPTABLE        300
  42. #define ID_SUBTABLE_MESSAGEBOX   301
  43.  
  44. /*
  45.  * These are our own private window messages.
  46.  */
  47. #define UM_PLAY_AUDIO_HELP (WM_USER+1)
  48. #define UM_KILL_AUDIO_HELP (WM_USER+2)
  49.  
  50.  
  51. #define WC_AUDIO_HELP      "DPAudioHelpWC"
  52.  
  53.  
  54. /*
  55.  * User parms for the mci operations - these will identify which
  56.  * action generated a received notifications messages.
  57.  */
  58. #define UP_OPEN   1
  59. #define UP_PLAY   2
  60. #define UP_PAUSE  3
  61. #define UP_RESUME 4
  62. #define UP_STOP   5
  63. #define UP_CLOSE  6
  64. #define UP_VOLUME 7
  65. #define UP_GROUP  8
  66.  
  67. /*
  68.  * Button bitmap id's
  69.  */
  70.  
  71. #define ID_BMP_PLAY0    101
  72. #define ID_BMP_PLAY1    102
  73. #define ID_BMP_PLAY2    103
  74. #define ID_BMP_PLAY3    104
  75. #define ID_BMP_PLAY4    105
  76.  
  77. #define ID_BMP_PAUSE    106
  78.  
  79. #define ID_BMP_STOP     107
  80.  
  81. /*
  82.  * String defines for the string table.
  83.  */
  84. #define LEN_ERROR_TITLE                      60
  85. #define LEN_ERROR_MESSAGE                    128
  86. #define LEN_PROGRAM_TITLE                    60
  87. #define LEN_HELP_WINDOW_TITLE                60
  88. #define LEN_HELP_LIBRARY_NAME                13 /* DOS limit   */
  89. #define LEN_DUET_TITLE                       40
  90. #define LEN_AUDIO_FILENAME                   13 /* DOS limit   */
  91.  
  92. #define IDS_PROGRAM_TITLE                    1
  93. #define IDS_HELP_CREATION_FAILED             2
  94. #define IDS_UNKNOWN                          3
  95. #define IDS_MCI_NOTIFY_ERROR                 4
  96. #define IDS_DUET_PLAYER_ERROR                5
  97. #define IDS_CANNOT_FIND_AUDIO_FILE           6
  98. #define IDS_NO_DUET_SELECTED                 7
  99. #define IDS_CANNOT_MAKE_GROUP                8
  100. #define IDS_CANT_PROCESS_MESSAGE             9
  101.  
  102. #define IDS_HELP_WINDOW_TITLE                10
  103. #define IDS_HELP_LIBRARY_NAME                11
  104. #define IDS_HELP_WAVEFILE                    12
  105. #define IDS_DEFAULTSIZE                      13
  106.  
  107. #define IDS_DUET_1_TITLE                     20
  108. #define IDS_DUET_1_PART1_FILE                21
  109. #define IDS_DUET_1_PART2_FILE                22
  110. #define IDS_DUET_2_TITLE                     23
  111. #define IDS_DUET_2_PART1_FILE                24
  112. #define IDS_DUET_2_PART2_FILE                25
  113. #define IDS_DUET_3_TITLE                     26
  114. #define IDS_DUET_3_PART1_FILE                27
  115. #define IDS_DUET_3_PART2_FILE                28
  116.  
  117.