home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / mm / mcistrng / mcistrng.h < prev    next >
Text File  |  1996-11-19  |  13KB  |  283 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 1991, 1993
  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_HELPTABLE                                 1510
  33. #define ID_BATCH_FILE_PB                                        1511
  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.  
  45. /*
  46.  * Include Dialog Box.
  47.  */
  48. #define ID_INCLUDE_DIALOG_BOX                                   3000
  49. #define ID_INSTRUCTION_TEXT_LINE_1                              3010
  50. #define ID_INSTRUCTION_TEXT_LINE_2                              3020
  51. #define ID_NOTIFY_CB                                            3110
  52. #define ID_PASSDEVICE_CB                                        3120
  53. #define ID_POSITION_CHANGE_PB                                   3130
  54. #define ID_EVENT_CB                                             3140
  55. #define ID_CUEPOINT_CB                                          3150
  56. #define ID_PLAYLIST_CB                                          3160
  57. #define ID_MCIPLAYLIST_MESSAGE_TEXT                             3165
  58. #define ID_INCLUDE_PB                                           3200
  59. #define ID_INCLUDE_CANCEL_PB                                    3300
  60. #define ID_INCLUDE_HELP_PB                                      3400
  61.  
  62. #define ID_ICON                                                 1000
  63.  
  64. /*
  65.  * Main Dialog Box and control positioning defines.
  66.  */
  67. #define MAIN_DIALOG_X_POSITION                                    10
  68. #define MAIN_DIALOG_Y_POSITION                                    60
  69. #define MAIN_DIALOG_X_SIZE                                        275
  70. #define MAIN_DIALOG_Y_SIZE                                        102
  71.  
  72. /* Control and Pushbuttons */
  73. #define COMBO_BOX_X_POSITION                                      4
  74. #define COMBO_BOX_Y_POSITION                                      20
  75. #define COMBO_BOX_X_SIZE                                          267
  76. #define COMBO_BOX_Y_SIZE                                          70
  77.  
  78. #define MAIN_SEND_PB_X_POSITION                                   4
  79. #define MAIN_DISPLAY_PB_X_POSITION                                43
  80. #define MAIN_BATCH_FILE_PB_X_POSITION                             140
  81. #define MAIN_CANCEL_PB_X_POSITION                                 197
  82. #define MAIN_HELP_PB_X_POSITION                                   235
  83.  
  84. #define MAIN_PUSHBUTTONS_Y_POSITION                               5
  85.  
  86. #define MAIN_SEND_PUSHBUTTON_X_SIZE                               37
  87. #define MAIN_DISPLAY_PUSHBUTTON_X_SIZE                            95
  88. #define MAIN_BATCH_PUSHBUTTON_X_SIZE                              55
  89. #define MAIN_CANCEL_PUSHBUTTON_X_SIZE                             37
  90. #define MAIN_HELP_PUSHBUTTON_X_SIZE                               37
  91. #define MAIN_PUSHBUTTONS_Y_SIZE                                   15
  92.  
  93. #define MAIN_STRING_TEXT_X_POSITION                               5
  94. #define MAIN_STRING_TEXT_Y_POSITION                               92
  95. #define MAIN_STRING_TEXT_X_SIZE                                   80
  96. #define MAIN_STRING_TEXT_Y_SIZE                                   8
  97.  
  98. /*
  99.  * Display Dialog Box and control positioning defines.
  100.  */
  101. #define DISPLAY_DIALOG_X_POSITION                                 20
  102. #define DISPLAY_DIALOG_Y_POSITION                                 50
  103. #define DISPLAY_DIALOG_X_SIZE                                     275
  104. #define DISPLAY_DIALOG_Y_SIZE                                     105
  105.  
  106. /* Controls and Pushbuttons */
  107. #define DISPLAY_CONTROL_X_POSITION                                5
  108. #define DISPLAY_CONTROL_Y_POSITION                                23
  109. #define DISPLAY_CONTROL_X_SIZE                                    265
  110. #define DISPLAY_CONTROL_Y_SIZE                                    70
  111.  
  112. #define DISPLAY_TEXT_X_POSITION                                   5
  113. #define DISPLAY_TEXT_Y_POSITION                                   95
  114. #define DISPLAY_TEXT_X_SIZE                                       110
  115. #define DISPLAY_TEXT_Y_SIZE                                       8
  116.  
  117. #define DISPLAY_INCLUDE_PB_X_POSITION                             5
  118. #define DISPLAY_CANCEL_PB_X_POSITION                              65
  119. #define DISPLAY_HELP_PB_X_POSITION                                125
  120.  
  121. #define DISPLAY_PUSHBUTTONS_Y_POSITION                            5
  122. #define DISPLAY_PUSHBUTTONS_X_SIZE                                50
  123. #define DISPLAY_PUSHBUTTONS_Y_SIZE                                15
  124.  
  125. /*
  126.  * Include Dialog Box and control positioning defines.
  127.  */
  128. #define INCLUDE_DIALOG_X_POSITION                                 55
  129. #define INCLUDE_DIALOG_Y_POSITION                                 55
  130. #define INCLUDE_DIALOG_X_SIZE                                     300
  131. #define INCLUDE_DIALOG_Y_SIZE                                     140
  132.  
  133. /* Controls and Pushbuttons */
  134. #define INCLUDE_PB_X_POSITION                                     5
  135. #define INCLUDE_CANCEL_PB_X_POSITION                              60
  136. #define INCLUDE_HELP_PB_X_POSITION                                115
  137. #define INCLUDE_PUSHBUTTONS_Y_POSITION                            5
  138.  
  139. #define INCLUDE_PUSHBUTTONS_X_SIZE                                45
  140. #define INCLUDE_PUSHBUTTONS_Y_SIZE                                15
  141.  
  142. #define INCLUDE_TEXT_X_POSITION                                   5
  143. #define INCLUDE_TEXT_1_Y_POSITION                                 125
  144. #define INCLUDE_TEXT_2_Y_POSITION                                 115
  145. #define INCLUDE_TEXT_X_SIZE                                       250
  146. #define INCLUDE_TEXT_Y_SIZE                                       8
  147.  
  148. #define INCLUDE_NUMBER_OF_CHECKBOXES                              6
  149.  
  150. #define CB_COLUMN_Y_POSITION                                      45
  151. #define CB_OFFSET_Y_POSITION                                      20
  152.  
  153. #define CB_FIRST_COLUMN_X_POSITION                                15
  154. #define CB_SECOND_COLUMN_X_POSITION                               155
  155.  
  156. #define CB_COLUMN_Y_POSITION                                      45
  157. #define CB_OFFSET_Y_POSITION                                      20
  158.  
  159. #define CB_X_SIZE                                                 135
  160. #define CB_RIGHT_COLUMN_X_SIZE                                    140
  161. #define CB_Y_SIZE                                                 10
  162.  
  163. #define CB_TEXT_X_OFFSET                                          12
  164. #define CB_TEXT_Y_OFFSET                                          10
  165.  
  166. /* List Box Defines. */
  167.  
  168. #define LIST_BOX_X_SIZE                                           100
  169. #define LIST_BOX_Y_SIZE                                           92
  170.  
  171. #define LIST_BOXS_Y_POSITION                                      54
  172.  
  173. #define FILES_DIRECTORY_TEXT_Y_POSITION                           147
  174.  
  175. #define DIRECTORY_LIST_BOX_X_POSITION                             120
  176.  
  177. #define FILE_TEXT_X_SIZE                                          24
  178.  
  179.  
  180. /*
  181.  * Misc. Definitions.
  182.  */
  183. #define MCI_STRING_LENGTH                                       256
  184.  
  185. #define MCI_ERROR_STRING_LENGTH                                 128
  186.  
  187. #define MCI_RETURN_STRING_LENTGH                                128
  188.  
  189. #define LIST_BOX_VERTICAL_SB_ID                                 0xC001
  190.  
  191. #define ID_MESSAGE_BOX                                          1
  192. #define SUBTABLE_MESSAGEBOX                                     2
  193.  
  194. /*
  195.  * This define is to make the code more readable by replacing the OS/2
  196.  * definition with a more understandable one.
  197.  */
  198. #define FILE_NAME_SIZE                                          CCHMAXPATHCOMP
  199. #define WM_BATCHFILE                                            WM_USER
  200.  
  201. #define NUMBER_OF_NOTIFICATION_MESSAGES                         16
  202.  
  203. #define ID_MM_MCINOTIFY                                         0
  204. #define ID_MM_MCIPASSDEVICE                                     1
  205. #define ID_MM_MCIPOSITIONCHANGE                                 2
  206. #define ID_MM_MCIEVENT                                          3
  207. #define ID_MM_MCICUEPOINT                                       4
  208. #define ID_MM_MCIPLAYLISTMESSAGE                                5
  209. #define ID_MCI_NOTIFY_SUCCESSFUL                                6
  210. #define ID_MCI_NOTIFY_SUPERSEDED                                7
  211. #define ID_MCI_NOTIFY_ABORTED                                   8
  212. #define ID_MCI_NOTIFY_ERROR                                     9
  213. #define ID_DEVICE_ID                                            10
  214. #define ID_USER_PARM                                            11
  215. #define ID_GAINING_USE                                          12
  216. #define ID_LOSING_USE                                           13
  217. #define ID_TIME                                                 14
  218. #define ID_CMD_MSG                                              15
  219.  
  220. #define STRING_SIZE                                             150
  221.  
  222. /*
  223.  * String defines for the string table.
  224.  */
  225. #define IDS_MAIN_WINDOW_TITLE                                   1
  226. #define IDS_MAIN_HELP_WINDOW_TITLE                              2
  227. #define IDS_NORMAL_ERROR_MESSAGE_BOX_TEXT                       3
  228. #define IDS_MAIN_HELP_LIBRARY_FILE                              4
  229. #define IDS_RETURN_STRING                                       5
  230. #define IDS_UNKNOWN                                             6
  231. #define IDS_CONTINUE_BATCHFILE                                  7
  232.  
  233. #define NUMBER_OF_PROGRAM_STRINGS                               7
  234.  
  235. #define IDS_DEFAULTSIZE                                         8
  236. #define IDS_END_OF_BATCH_FILE                                   9
  237. #define IDS_CANNOT_FIND_BATCH_FILE                              10
  238. #define IDS_OPEN_BATCHFILE_TITLE                                11
  239. #define IDS_OPEN_BATCHFILE_BUTTON                               12
  240. #define IDS_MAIN_HELP_CREATION_FAILED                           13
  241. #define IDS_MCI_STRING_HAS_NO_SIZE                              14
  242. #define IDS_MCI_GETTING_STRING_ERROR_FAILED                     15
  243. #define IDS_ALL_CHECKBOXES_ARE_FALSE                            16
  244.  
  245. #define STARTING_IDS_VALUE_FOR_MCI_NOTIFICATION_MESSAGES        18
  246.  
  247. #define IDS_MM_MCINOTIFY                                        18
  248. #define IDS_MM_MCIPASSDEVICE                                    19
  249. #define IDS_MM_MCIPOSITIONCHANGE                                20
  250. #define IDS_MM_MCIEVENT                                         21
  251. #define IDS_MM_MCICUEPOINT                                      22
  252. #define IDS_MM_MCIPLAYLISTMESSAGE                               23
  253. #define IDS_MCI_NOTIFY_SUCCESSFUL                               24
  254. #define IDS_MCI_NOTIFY_SUPERSEDED                               25
  255. #define IDS_MCI_NOTIFY_ABORTED                                  26
  256. #define IDS_MCI_NOTIFY_ERROR                                    27
  257. #define IDS_DEVICE_ID                                           28
  258. #define IDS_USER_PARM                                           29
  259. #define IDS_GAINING_USE                                         30
  260. #define IDS_LOSING_USE                                          31
  261. #define IDS_TIME                                                32
  262. #define IDS_CMD_MSG                                             33
  263.  
  264.  
  265. /*
  266.  * Program specific Typedefs
  267.  */
  268. typedef enum
  269. {
  270.    MAIN_DIALOG,
  271.    INCLUDE_DIALOG,
  272.    DISPLAY_DIALOG
  273. } WHICH_DIALOG_T;
  274.  
  275. /*
  276.  * For Save and Restore
  277.  */
  278. typedef struct _SWPRESTORE {
  279.    SWP     swpMain;
  280.    SWP     swpDisplay;
  281.    BOOL    fDisplayMsgWindowStatus;
  282. } SWPRESTORE;
  283.