home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0090 - 0099 / ibm0090-0099 / ibm0099.tar / ibm0099 / ANIW3ECR.ZIP / SAMPLE / AWMCISAM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-28  |  4.8 KB  |  183 lines

  1. /*
  2. =============================================================================
  3.  
  4.     Filename:        awmcisam.h
  5.  
  6.     Description:    General header for Animation MCI Sample Program.
  7.  
  8. =============================================================================
  9. */
  10.  
  11. #ifndef AWMCISAM_H                // Done so this include file won't...
  12. #define AWMCISAM_H                // ...be included twice
  13.  
  14. #include <stdlib.h>
  15. #include <stdio.h>
  16. #undef  NULL
  17. #include <windows.h>
  18. #include <mmsystem.h>
  19.  
  20. #ifdef RC_INVOKED
  21. #define ID(id)    id
  22. #else
  23. #define ID(id)    MAKEINTRESOURCE(id)
  24. #endif
  25.  
  26. // Program Version Number
  27. #define msMCISAMVERSION RGB (2, 0, 0)
  28.  
  29. #define msMAX  128
  30.  
  31. int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  32. LONG FAR PASCAL MainWndProc(HWND, unsigned, WORD, LONG);
  33. BOOL FAR PASCAL msMainDlgProc (HWND, unsigned, WORD ,LONG);
  34. BOOL FAR PASCAL msOpenDlgProc (HWND, unsigned, WORD ,LONG);
  35. BOOL FAR PASCAL msSeekDlgProc (HWND, unsigned, WORD ,LONG);
  36. BOOL FAR PASCAL msDevCapsDlgProc (HWND, unsigned, WORD ,LONG);
  37. BOOL FAR PASCAL msInfoDlgProc (HWND, unsigned, WORD ,LONG);
  38. BOOL FAR PASCAL msStatusDlgProc (HWND, unsigned, WORD ,LONG);
  39. BOOL FAR PASCAL msAboutDlgProc (HWND, unsigned, WORD ,LONG);
  40.  
  41.  
  42. //
  43. //  Dialog Box IDs
  44. //
  45.  
  46. #define IDDLG_MAIN      ID(7000)
  47. #define IDDLG_OPEN      ID(7001)
  48. #define IDDLG_SEEK      ID(7002)
  49. #define IDDLG_DEVCAPS   ID(7003)
  50. #define IDDLG_INFO      ID(7004)
  51. #define IDDLG_STATUS    ID(7005)
  52. #define IDDLG_ABOUT     ID(7006)
  53.  
  54.  
  55. //
  56. //  General Definitions
  57. //
  58.  
  59. // ID for the 'OK' and 'Cancel' push buttons of all dialog boxes
  60. #define IDPB_OK                1
  61. #define IDPB_CANCEL            2
  62.  
  63.  
  64. //
  65. //  Dialog Box Definitions
  66. //
  67.  
  68. //  'Main' Dialog Box
  69.  
  70. #define IDPB_MAIN_STOP              100
  71. #define IDPB_MAIN_PAUSE             101
  72. #define IDPB_MAIN_PLAY_FORWARD      102
  73. #define IDPB_MAIN_PLAY_REVERSE      103
  74. #define IDPB_MAIN_STEP_FORWARD      104
  75. #define IDPB_MAIN_STEP_REVERSE      105
  76. #define IDPB_MAIN_OPEN              106
  77. #define IDPB_MAIN_CLOSE             107
  78. #define IDPB_MAIN_SEEK              108
  79. #define IDPB_MAIN_DEV_CAP           109
  80. #define IDPB_MAIN_STATUS            110
  81. #define IDPB_MAIN_INFO              111
  82. #define IDCB_MAIN_BKGND_LOAD        112
  83. #define IDCB_MAIN_FULL_SCRN            113
  84. #define IDPB_MAIN_TOSTART           114
  85. #define IDPB_MAIN_TOEND             115
  86.  
  87. // 'Open' Dialog Box
  88.  
  89. #define IDEB_OPEN_MOVIE_FILE        200
  90.  
  91. // 'Seek' Dialog Box
  92.  
  93. #define IDEB_SEEK_TOFRAME           300
  94.  
  95. // 'Device Capabilities' Dialog Box
  96.  
  97. #define IDST_DEVCAP_EJECT           400
  98. #define IDST_DEVCAP_PLAY            401
  99. #define IDST_DEVCAP_RECORD          402
  100. #define IDST_DEVCAP_SAVE            403
  101. #define IDST_DEVCAP_DEVELE          404
  102. #define IDST_DEVCAP_DEVTYPE         405
  103. #define IDST_DEVCAP_AUDIO           406
  104. #define IDST_DEVCAP_VIDEO           407
  105. #define IDST_DEVCAP_USESFILES       408
  106. #define IDST_DEVCAP_PLAYREVERSE     409
  107. #define IDST_DEVCAP_STRETCH         410
  108. #define IDST_DEVCAP_FASTRATE        411
  109. #define IDST_DEVCAP_PALETTE         412
  110. #define IDST_DEVCAP_SLOWRATE        413
  111. #define IDST_DEVCAP_MAXWIN          414
  112. #define IDST_DEVCAP_NORMRATE        415
  113. #define IDST_MAIN_PLAYWND           416
  114.  
  115. // 'Info' Dialog Box
  116.  
  117. #define IDST_INFO_FILENAME          500
  118. #define IDST_INFO_CAPTION           501
  119. #define IDST_INFO_PRODUCT           502
  120. #define IDST_INFO_DDVERSION         503
  121.  
  122. // 'Status' Dialog Box
  123.  
  124. #define IDST_STATUS_CURRFRAME       600
  125. #define IDST_STATUS_NUMFRAMES       601
  126. #define IDST_STATUS_CURRMODE        602
  127. #define IDST_STATUS_SPEED           603
  128. #define IDST_STATUS_HWND            604
  129.  
  130. // 'About' Dialog Box
  131.  
  132. #define IDST_VERSION                700
  133.  
  134.  
  135. //
  136. //  Strings Definitions
  137. //
  138.  
  139. #define IDS_ERROR_TITLE             1000
  140. #define IDS_DEVTYPE_ANIMATION       1001
  141. #define IDS_DEVTYPE_CD_AUDIO        1002
  142. #define IDS_DEVTYPE_DAT             1003
  143. #define IDS_DEVTYPE_DIGITAL_VIDEO   1004
  144. #define IDS_DEVTYPE_OTHER           1005
  145. #define IDS_DEVTYPE_OVERLAY         1006
  146. #define IDS_DEVTYPE_SCANNER         1007
  147. #define IDS_DEVTYPE_SEQUENCER       1008
  148. #define IDS_DEVTYPE_VIDEODISC       1009
  149. #define IDS_DEVTYPE_VIDEOTAPE       1010
  150. #define IDS_DEVTYPE_WAVEFORM_AUDIO  1011
  151.  
  152. #define IDS_UNKNOWN                 1012
  153. #define IDS_UNSUPPORTED_FUNCTION    1013
  154. #define IDS_SUPPORTED_FUNCTION      1014
  155.  
  156. #define IDS_MODE_NOT_READY          1015
  157. #define IDS_MODE_PAUSE              1016
  158. #define IDS_MODE_PLAY_FORWARD       1017
  159. #define IDS_MODE_PLAY_REVERSE       1018
  160. #define IDS_MODE_STOP               1019
  161. #define IDS_MODE_OPEN               1020
  162. #define IDS_MODE_RECORD             1021
  163. #define IDS_MODE_SEEK               1022
  164.  
  165. #define IDS_ABOUT                   1023
  166.  
  167.  
  168. //
  169. //  Menus Definitions
  170. //
  171.  
  172. #define IDM_ABOUT                   2000
  173.  
  174.  
  175. //
  176. //  Icon Definitions
  177. //
  178.  
  179. #define IDI_APPICON                 ID(3000)
  180.  
  181.  
  182. #endif    /* ifndef AWMCISAM_H */
  183.