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

  1. /*************************************************************************
  2. * ToyBox Demo Program h include file.
  3. *
  4. * 08/08/95 - Original Version, Dan Mendrala, IBM Corporation, 1995.
  5. *
  6. *************************************************************************/
  7.  
  8.  
  9. /*************************************************************************
  10.  * Just the basic include files.
  11.  ************************************************************************/
  12.  
  13. #include <windows.h>
  14. #include <stdio.h>
  15.  
  16. /*************************************************************************
  17.  * These are some limits that we set in the program.
  18.  ************************************************************************/
  19.  
  20. #define MAX_OBJ                 100     /* Max balls active             */
  21. #define MAX_OBJ_TYPE            6       /* MUST be EVEN # of types      */
  22. #define MAX_OBJ_FRAME           6       /* # of frames per type         */
  23.  
  24. /*************************************************************************
  25.  * Some constants that we need set.
  26.  ************************************************************************/
  27.  
  28. #define BIT_NONOBJ              0               /* status for unused    */
  29. #define BIT_ACTOBJ              1               /* active object (=)    */
  30. #define BIT_NEWOBJ              2               /* Status for NEW       */
  31. #define BIT_DELOBJ              4               /* Status for Delete obj*/
  32.  
  33.  
  34. /*************************************************************************
  35.  * These are all of the defines used by the resource file menu items.
  36.  ************************************************************************/
  37.  
  38. #define IDM_START                                                                1
  39. #define IDM_STOP                                                                 2
  40.  
  41. #define IDM_ADDOBJ                                                               10
  42. #define IDM_DELOBJ                                                               11
  43. #define IDM_MAXOBJ                                                               12
  44. #define IDM_MINOBJ                                                               13
  45. #define IDM_STEP                                                                 14
  46.  
  47. #define IDM_ABOUT                                                                97
  48. #define IDM_QUIT                                                                 98
  49. #define IDM_HELP                                                                 99
  50.  
  51. /*************************************************************************
  52.  * These are the defines used by the bitmaps, icons and menus
  53.  * used in the resource file.
  54.  ************************************************************************/
  55.  
  56. #define BallR1                                   0x1001
  57. #define BallR2                                   0x1002
  58. #define BallR3                                   0x1003
  59. #define BallR4                                   0x1004
  60. #define BallR5                                   0x1005
  61. #define BallR6                                   0x1006
  62. #define BallB1                                   0x1007
  63. #define BallB2                                   0x1008
  64. #define BallB3                                   0x1009
  65. #define BallB4                                   0x100A
  66. #define BallY1                                   0x100B
  67. #define BallY2                                   0x100C
  68. #define BallY3                                   0x100D
  69. #define BallY4                                   0x100E
  70. #define BallY5                                   0x100F
  71. #define BallY6                                   0x1010
  72. #define BallG1                                   0x1011
  73. #define BallG2                                   0x1012
  74. #define BallG3                                   0x1013
  75. #define BallG4                                   0x1014
  76. #define BallG5                                   0x1015
  77. #define BallG6                                   0x1016
  78. #define BallL1                                   0x1017
  79. #define BallL2                                   0x1018
  80. #define BallL3                                   0x1019
  81. #define BallL4                                   0x101A
  82. #define BallP1                                   0x101B
  83. #define BallP2                                   0x101C
  84. #define BallP3                                   0x101D
  85. #define BallP4                                   0x101E
  86.  
  87. #define ToyIcon                                  0x1100
  88. #define ToyMenu                                  0x1101
  89.  
  90.