home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / amiiprog.zip / MCISTRNG.H < prev    next >
Text File  |  1992-05-26  |  13KB  |  278 lines

  1. /*************************************************************************
  2.  * File Name   : MCISTRNG.H
  3.  *
  4.  * Description : This file contains the definitions used by the MCISTRNG
  5.  *               sample program.
  6.  *
  7.  * Concepts    : No Multimedia concepts will be shown.
  8.  *
  9.  * MMPM/2      : None used.
  10.  *
  11.  * Required
  12.  *    Files    : None.
  13.  *
  14.  *
  15.  * Copyright (C) IBM October 1991
  16.  *************************************************************************/
  17.  
  18. /*
  19.  * Resource specific definitions.
  20.  */
  21.  
  22. /*
  23.  * Main Dialog Box.
  24.  */
  25. #define ID_MAIN_DIALOG_BOX                                      1000
  26. #define ID_STRING_COMBO_BOX                                     1100
  27. #define ID_MAIN_SEND_PB                                         1200
  28. #define ID_DISPLAY_MESSAGES_PB                                  1300
  29. #define ID_STRING_TITLE_TEXT                                    1310
  30. #define ID_MAIN_CANCEL_PB                                       1400
  31. #define ID_MAIN_HELP_PB                                         1500
  32. #define ID_MCI_STRING_MAIN_DIALOG_HELPTABLE                     1510
  33. #define ID_MCI_STRING_MAIN_HELPTABLE                            1520
  34.  
  35. /*
  36.  * Notification Messages Display Dialog Box.
  37.  */
  38. #define ID_DISPLAY_DIALOG_BOX                                   2000
  39. #define ID_DISPLAY_CONTROL                                      2100
  40. #define ID_MESSAGES_TEXT                                        2110
  41. #define ID_DISPLAY_INCLUDE_PB                                   2200
  42. #define ID_DISPLAY_CANCEL_PB                                    2300
  43. #define ID_DISPLAY_HELP_PB                                      2400
  44. #define ID_MCI_STRING_DISPLAY_DIALOG_HELPTABLE                  2410
  45.  
  46. /*
  47.  * Include Dialog Box.
  48.  */
  49. #define ID_INCLUDE_DIALOG_BOX                                   3000
  50. #define ID_INSTRUCTION_TEXT_LINE_1                              3010
  51. #define ID_INSTRUCTION_TEXT_LINE_2                              3020
  52. #define ID_NOTIFY_CB                                            3110
  53. #define ID_PASSDEVICE_CB                                        3120
  54. #define ID_POSITION_CHANGE_PB                                   3130
  55. #define ID_EVENT_CB                                             3140
  56. #define ID_CUEPOINT_CB                                          3150
  57. #define ID_PLAYLIST_CB                                          3160
  58. #define ID_MCIPLAYLIST_MESSAGE_TEXT                             3165
  59. #define ID_INCLUDE_PB                                           3200
  60. #define ID_INCLUDE_CANCEL_PB                                    3300
  61. #define ID_INCLUDE_HELP_PB                                      3400
  62. #define ID_MCI_STRING_INCLUDE_DIALOG_HELPTABLE                  3410
  63.  
  64. #define ID_MCI_STRING_HELPTABLE                                 3420
  65.  
  66. #define ID_ICON                                                 1000
  67.  
  68. /*
  69.  * Main Dialog Box and control positioning defines.
  70.  */
  71. #define MAIN_DIALOG_X_POSITION                                    10
  72. #define MAIN_DIALOG_Y_POSITION                                    60
  73. #define MAIN_DIALOG_X_SIZE                                        275
  74. #define MAIN_DIALOG_Y_SIZE                                        102
  75.  
  76. /* Control and Pushbuttons */
  77. #define COMBO_BOX_X_POSITION                                      5
  78. #define COMBO_BOX_Y_POSITION                                      20
  79. #define COMBO_BOX_X_SIZE                                          265
  80. #define COMBO_BOX_Y_SIZE                                          70
  81.  
  82. #define MAIN_SEND_PB_X_POSITION                                   5
  83. #define MAIN_DISPLAY_PB_X_POSITION                                60
  84. #define MAIN_CANCEL_PB_X_POSITION                                 170
  85. #define MAIN_HELP_PB_X_POSITION                                   225
  86.  
  87. #define MAIN_PUSHBUTTONS_Y_POSITION                               5
  88.  
  89. #define MAIN_SEND_PUSHBUTTON_X_SIZE                               45
  90. #define MAIN_DISPLAY_PUSHBUTTON_X_SIZE                            100
  91. #define MAIN_CANCEL_PUSHBUTTON_X_SIZE                             45
  92. #define MAIN_HELP_PUSHBUTTON_X_SIZE                               45
  93. #define MAIN_PUSHBUTTONS_Y_SIZE                                   15
  94.  
  95. #define MAIN_STRING_TEXT_X_POSITION                               5
  96. #define MAIN_STRING_TEXT_Y_POSITION                               92
  97. #define MAIN_STRING_TEXT_X_SIZE                                   80
  98. #define MAIN_STRING_TEXT_Y_SIZE                                   8
  99.  
  100. /*
  101.  * Display Dialog Box and control positioning defines.
  102.  */
  103. #define DISPLAY_DIALOG_X_POSITION                                 20
  104. #define DISPLAY_DIALOG_Y_POSITION                                 50
  105. #define DISPLAY_DIALOG_X_SIZE                                     275
  106. #define DISPLAY_DIALOG_Y_SIZE                                     105
  107.  
  108. /* Controls and Pushbuttons */
  109. #define DISPLAY_CONTROL_X_POSITION                                5
  110. #define DISPLAY_CONTROL_Y_POSITION                                23
  111. #define DISPLAY_CONTROL_X_SIZE                                    265
  112. #define DISPLAY_CONTROL_Y_SIZE                                    70
  113.  
  114. #define DISPLAY_TEXT_X_POSITION                                   5
  115. #define DISPLAY_TEXT_Y_POSITION                                   95
  116. #define DISPLAY_TEXT_X_SIZE                                       110
  117. #define DISPLAY_TEXT_Y_SIZE                                       8
  118.  
  119. #define DISPLAY_INCLUDE_PB_X_POSITION                             5
  120. #define DISPLAY_CANCEL_PB_X_POSITION                              65
  121. #define DISPLAY_HELP_PB_X_POSITION                                125
  122.  
  123. #define DISPLAY_PUSHBUTTONS_Y_POSITION                            5
  124. #define DISPLAY_PUSHBUTTONS_X_SIZE                                50
  125. #define DISPLAY_PUSHBUTTONS_Y_SIZE                                15
  126.  
  127. /*
  128.  * Include Dialog Box and control positioning defines.
  129.  */
  130. #define INCLUDE_DIALOG_X_POSITION                                 55
  131. #define INCLUDE_DIALOG_Y_POSITION                                 55
  132. #define INCLUDE_DIALOG_X_SIZE                                     300
  133. #define INCLUDE_DIALOG_Y_SIZE                                     140
  134.  
  135. /* Controls and Pushbuttons */
  136. #define INCLUDE_PB_X_POSITION                                     5
  137. #define INCLUDE_CANCEL_PB_X_POSITION                              60
  138. #define INCLUDE_HELP_PB_X_POSITION                                115
  139. #define INCLUDE_PUSHBUTTONS_Y_POSITION                            5
  140.  
  141. #define INCLUDE_PUSHBUTTONS_X_SIZE                                45
  142. #define INCLUDE_PUSHBUTTONS_Y_SIZE                                15
  143.  
  144. #define INCLUDE_TEXT_X_POSITION                                   5
  145. #define INCLUDE_TEXT_1_Y_POSITION                                 125
  146. #define INCLUDE_TEXT_2_Y_POSITION                                 115
  147. #define INCLUDE_TEXT_X_SIZE                                       250
  148. #define INCLUDE_TEXT_Y_SIZE                                       8
  149.  
  150. #define INCLUDE_NUMBER_OF_CHECKBOXES                              6
  151.  
  152. #define CB_COLUMN_Y_POSITION                                      45
  153. #define CB_OFFSET_Y_POSITION                                      20
  154.  
  155. #define CB_FIRST_COLUMN_X_POSITION                                15
  156. #define CB_SECOND_COLUMN_X_POSITION                               155
  157.  
  158. #define CB_COLUMN_Y_POSITION                                      45
  159. #define CB_OFFSET_Y_POSITION                                      20
  160.  
  161. #define CB_X_SIZE                                                 135
  162. #define CB_RIGHT_COLUMN_X_SIZE                                    140
  163. #define CB_Y_SIZE                                                 10
  164.  
  165. #define CB_TEXT_X_OFFSET                                          12
  166. #define CB_TEXT_Y_OFFSET                                          10
  167.  
  168. /* List Box Defines. */
  169.  
  170. #define LIST_BOX_X_SIZE                                           100
  171. #define LIST_BOX_Y_SIZE                                           92
  172.  
  173. #define LIST_BOXS_Y_POSITION                                      54
  174.  
  175. #define FILES_DIRECTORY_TEXT_Y_POSITION                           147
  176.  
  177. #define DIRECTORY_LIST_BOX_X_POSITION                             120
  178.  
  179. #define FILE_TEXT_X_SIZE                                          24
  180.  
  181.  
  182. /*
  183.  * Misc. Definitions.
  184.  */
  185. #define MCI_STRING_LENGTH                                       256
  186.  
  187. #define MCI_ERROR_STRING_LENGTH                                 128
  188.  
  189. #define MCI_RETURN_STRING_LENTGH                                128
  190.  
  191. #define LIST_BOX_VERTICAL_SB_ID                                 0xC001
  192.  
  193. #define ID_MESSAGE_BOX                                          1
  194. #define SUBTABLE_MESSAGEBOX                                     2
  195. #define PANEL_INCLUDE_HELP                                      1
  196.  
  197. /*
  198.  * This define is to make the code more readable by replacing the OS/2
  199.  * definition with a more understandable one.
  200.  */
  201. #define FILE_NAME_SIZE                                          CCHMAXPATHCOMP
  202.  
  203. #define NUMBER_OF_NOTIFICATION_MESSAGES                         16
  204.  
  205. #define ID_MM_MCINOTIFY                                         0
  206. #define ID_MM_MCIPASSDEVICE                                     1
  207. #define ID_MM_MCIPOSITIONCHANGE                                 2
  208. #define ID_MM_MCIEVENT                                          3
  209. #define ID_MM_MCICUEPOINT                                       4
  210. #define ID_MM_MCIPLAYLISTMESSAGE                                5
  211. #define ID_MCI_NOTIFY_SUCCESSFUL                                6
  212. #define ID_MCI_NOTIFY_SUPERSEDED                                7
  213. #define ID_MCI_NOTIFY_ABORTED                                   8
  214. #define ID_MCI_NOTIFY_ERROR                                     9
  215. #define ID_DEVICE_ID                                            10
  216. #define ID_USER_PARM                                            11
  217. #define ID_GAINING_USE                                          12
  218. #define ID_LOSING_USE                                           13
  219. #define ID_TIME                                                 14
  220. #define ID_CMD_MSG                                              15
  221.  
  222. #define STRING_SIZE                                             150
  223.  
  224. /*
  225.  * String defines for the string table.
  226.  */
  227. #define IDS_MAIN_WINDOW_TITLE                                   1
  228. #define IDS_MAIN_HELP_WINDOW_TITLE                              2
  229. #define IDS_INCLUDE_HELP_WINDOW_TITLE                           3
  230. #define IDS_DISPLAY_HELP_WINDOW_TITLE                           4
  231. #define IDS_NORMAL_ERROR_MESSAGE_BOX_TEXT                       5
  232. #define IDS_MAIN_HELP_LIBRARY_FILE                              6
  233. #define IDS_DISPLAY_HELP_LIBRARY_FILE                           7
  234. #define IDS_INCLUDE_HELP_LIBRARY_FILE                           8
  235. #define IDS_DEFAULTSIZE                                         9
  236. #define IDS_RETURN_STRING                                       10
  237. #define IDS_UNKNOWN                                             11
  238.  
  239. #define NUMBER_OF_PROGRAM_STRINGS                               11
  240.  
  241. #define IDS_MAIN_HELP_CREATION_FAILED                           12
  242. #define IDS_INCLUDE_HELP_CREATION_FAILED                        13
  243. #define IDS_DISPLAY_HELP_CREATION_FAILED                        14
  244. #define IDS_MCI_STRING_HAS_NO_SIZE                              15
  245. #define IDS_MCI_GETTING_STRING_ERROR_FAILED                     16
  246. #define IDS_ALL_CHECKBOXES_ARE_FALSE                            17
  247.  
  248. #define STARTING_IDS_VALUE_FOR_MCI_NOTIFICATION_MESSAGES        18
  249.  
  250. #define IDS_MM_MCINOTIFY                                        18
  251. #define IDS_MM_MCIPASSDEVICE                                    19
  252. #define IDS_MM_MCIPOSITIONCHANGE                                20
  253. #define IDS_MM_MCIEVENT                                         21
  254. #define IDS_MM_MCICUEPOINT                                      22
  255. #define IDS_MM_MCIPLAYLISTMESSAGE                               23
  256. #define IDS_MCI_NOTIFY_SUCCESSFUL                               24
  257. #define IDS_MCI_NOTIFY_SUPERSEDED                               25
  258. #define IDS_MCI_NOTIFY_ABORTED                                  26
  259. #define IDS_MCI_NOTIFY_ERROR                                    27
  260. #define IDS_DEVICE_ID                                           28
  261. #define IDS_USER_PARM                                           29
  262. #define IDS_GAINING_USE                                         30
  263. #define IDS_LOSING_USE                                          31
  264. #define IDS_TIME                                                32
  265. #define IDS_CMD_MSG                                             33
  266.  
  267.  
  268. /*
  269.  * Program specific Typedefs
  270.  */
  271.  
  272. typedef enum
  273. {
  274.    MAIN_DIALOG,
  275.    INCLUDE_DIALOG,
  276.    DISPLAY_DIALOG
  277. } WHICH_DIALOG_T;
  278.