home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / duet2 / duet2.h < prev    next >
Text File  |  1999-05-11  |  3KB  |  112 lines

  1. /*************************************************************************
  2.  * File Name    :  duet2.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          1
  19. #define NUM_PARTS          2
  20.  
  21. #define INIT_VOLUME        75
  22.  
  23. #define ID_MESSAGEBOX      100
  24.  
  25. #define ID_AUDIOHELP       101
  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        102
  37.  
  38. #define ID_ICON            102
  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    103
  72. #define ID_BMP_PLAY1    104
  73. #define ID_BMP_PLAY2    105
  74. #define ID_BMP_PLAY3    106
  75. #define ID_BMP_PLAY4    107
  76.  
  77. #define ID_BMP_PAUSE    108
  78.  
  79. #define ID_BMP_STOP     109
  80.  
  81. /*
  82.  * String defines for the string table.
  83.  */
  84. #define LEN_ERROR_TITLE                      60
  85. #define LEN_ERROR_MESSAGE                    300
  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_DUET_PLAYER_ERROR                5
  96. #define IDS_CANNOT_FIND_AUDIO_FILE           6
  97. #define IDS_NO_DUET_SELECTED                 7
  98. #define IDS_CANNOT_MAKE_GROUP                8
  99. #define IDS_NO_DISC_IN_CD                    9
  100. #define IDS_DISC_IS_NOT_READABLE             10
  101. #define IDS_NO_CD_PLAYER                     11
  102.  
  103. #define IDS_HELP_WINDOW_TITLE                12
  104. #define IDS_HELP_LIBRARY_NAME                13
  105. #define IDS_HELP_WAVEFILE                    14
  106. #define IDS_DEFAULTSIZE                      15
  107. #define IDS_CANT_PROCESS_MESSAGE             16
  108.  
  109. #define IDS_DUET_1_TITLE                     20
  110. #define IDS_DUET_1_PART2_FILE                22
  111.  
  112.