home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / 2ddraw / 2ddraw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  7.9 KB  |  168 lines

  1. /******************************************************************************
  2. * .FILE:         2d-draw.h                                                    *
  3. *                                                                             *
  4. * .DESCRIPTION:  2D Graphics Drawing Program : Symbolic Definitions           *
  5. *                                                                             *
  6. * .COPYRIGHT:                                                                 *
  7. *    Licensed Material - Program-Property of IBM                              *
  8. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  9. *                                                                             *
  10. * .DISCLAIMER:                                                                *
  11. *   The following [enclosed] code is sample code created by IBM               *
  12. *   Corporation.  This sample code is not part of any standard IBM product    *
  13. *   and is provided to you solely for the purpose of assisting you in the     *
  14. *   development of your applications.  The code is provided 'AS IS',          *
  15. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  16. *   arising out of your use of the sample code, even if they have been        *
  17. *   advised of the possibility of such damages.                               *
  18. *                                                                             *
  19. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  20. *                                                                             *
  21. ******************************************************************************/
  22. #ifndef TWOD_H
  23. #define TWOD_H
  24. #define ID_NULL          -1
  25. #define WND_MAIN            0x1000
  26. #define WND_DRAW            0x1001
  27. #define WND_TOOLBAR         0x1002
  28. #define WND_TEXT            0x1003
  29. #define STR_HELLO           0x1004
  30. #define STR_INFO            0x1005
  31.  
  32. // Defines for graphic pushbuttons.  Do not move these out of order!
  33. #define PALLET_NORM         0x3001
  34. #define PALLET_LINE         0x3002
  35. #define PALLET_DRAW         0x3003
  36. #define PALLET_RECTANGLE    0x3004
  37. #define PALLET_ELLIPSE      0x3005
  38. #define PALLET_POLYLINE     0x3006
  39. #define PALLET_POLYGON      0x3007
  40. #define PALLET_ARC          0x3008
  41. #define PALLET_PIE          0x3009
  42. #define PALLET_CHORD        0x300A
  43. #define PALLET_TEXT         0x300B
  44. #define PALLET_BITMAP       0x300C
  45. #define PALLET_DUMMY        0x300D
  46.  
  47. #define BMP_EAGLE           0x3200
  48. #define TOOLBAR_SYSTEM      0x3201
  49.  
  50. #define LONG_OFFSET         100
  51.  
  52. #define STR_BMP_EXT         0x9000
  53. #define STR_LOAD_IMG        0x9001
  54. #define TITLE_DIALOG        0x9002
  55. // Defines for menu items.
  56.  
  57. #define ID_FILEMENU                        2000
  58. #define ID_VIEWMENU                        2001
  59. #define ID_TOOLMENU                        2002
  60. #define ID_FLCOLORS                        2003
  61. #define ID_COLORS                          2004
  62. #define ID_PATTERN                         2005
  63. #define ID_LINETYPE                        2006
  64. #define ID_LINEWIDTH                       2007
  65. #define ID_STYLEMENU                       2008
  66. #define ID_OPTIONSMENU                     2009
  67. #define ID_SETFONT                         2010
  68. #define ID_SETBITMAP                       2011
  69. #define ID_BKCOL                           2012
  70. #define ID_BKCOL_PIN                       2013
  71. #define ID_BKCOL_DARKPIN                   2014
  72. #define ID_BKCOL_BLU                       2015
  73. #define ID_DRAWOPERATION                   2016
  74. #define ID_FILL                            2017
  75. #define ID_FRAME                           2018
  76. #define ID_FILLANDFRAME                    2019
  77. #define ID_BKCOL_DARKBLU                   2020
  78. #define ID_BKCOL_CYA                       2021
  79. #define ID_BKCOL_DARKCYA                   2022
  80. #define ID_BKCOL_GRE                       2023
  81. #define ID_BKCOL_DARKGRE                   2024
  82. #define ID_BKCOL_YEL                       2025
  83. #define ID_BKCOL_RED                       2026
  84. #define ID_BKCOL_DARKRED                   2027
  85. #define ID_BKCOL_BRO                       2028
  86. #define ID_BKCOL_PALEGRA                   2029
  87. #define ID_BKCOL_DARKGRA                   2030
  88. #define ID_BKCOL_BLK                       2031
  89. #define ID_BKCOL_WHT                       2032
  90. #define ID_FLCOL_PIN                       2033
  91. #define ID_FLCOL_DARKPIN                   2034
  92. #define ID_FLCOL_BLU                       2035
  93. #define ID_FLCOL_DARKBLU                   2036
  94. #define ID_FLCOL_CYA                       2037
  95. #define ID_FLCOL_DARKCYA                   2038
  96. #define ID_FLCOL_GRE                       2039
  97. #define ID_FLCOL_DARKGRE                   2040
  98. #define ID_FLCOL_YEL                       2041
  99. #define ID_FLCOL_RED                       2042
  100. #define ID_FLCOL_DARKRED                   2043
  101. #define ID_FLCOL_BRO                       2044
  102. #define ID_FLCOL_PALEGRA                   2045
  103. #define ID_FLCOL_DARKGRA                   2046
  104. #define ID_FLCOL_BLK                       2047
  105. #define ID_FLCOL_WHT                       2048
  106. #define ID_COL_PIN                         2049
  107. #define ID_COL_DARKPIN                     2050
  108. #define ID_COL_BLU                         2051
  109. #define ID_COL_DARKBLU                     2052
  110. #define ID_COL_CYA                         2053
  111. #define ID_COL_DARKCYA                     2054
  112. #define ID_COL_GRE                         2055
  113. #define ID_COL_DARKGRE                     2056
  114. #define ID_COL_YEL                         2057
  115. #define ID_COL_RED                         2058
  116. #define ID_COL_DARKRED                     2059
  117. #define ID_COL_BRO                         2060
  118. #define ID_COL_PALEGRA                     2061
  119. #define ID_COL_DARKGRA                     2062
  120. #define ID_COL_BLK                         2063
  121. #define ID_COL_WHT                         2064
  122. #define ID_PENWIDTH_4                      2065
  123. #define ID_PENWIDTH_3                      2066
  124. #define ID_PENWIDTH_2                      2067
  125. #define ID_PENWIDTH_1                      2068
  126. #define ID_FILLPATTERN_SOLID               2069
  127. #define ID_FILLPATTERN_DIAG4               2070
  128. #define ID_FILLPATTERN_DIAG3               2071
  129. #define ID_FILLPATTERN_DIAG2               2072
  130. #define ID_FILLPATTERN_DIAG1               2073
  131. #define ID_FILLPATTERN_VERT                2074
  132. #define ID_FILLPATTERN_HORIZ               2075
  133. #define ID_FILLPATTERN_DENSE8              2076
  134. #define ID_FILLPATTERN_DENSE7              2077
  135. #define ID_FILLPATTERN_DENSE6              2078
  136. #define ID_FILLPATTERN_DENSE5              2079
  137. #define ID_FILLPATTERN_DENSE4              2080
  138. #define ID_FILLPATTERN_DENSE3              2081
  139. #define ID_FILLPATTERN_DENSE2              2082
  140. #define ID_FILLPATTERN_DENSE1              2083
  141. #define ID_FILLPATTERN_NOSHADE             2084
  142. #define ID_PENPATTERN_SOLID                2085
  143. #define ID_PENPATTERN_DIAG4                2086
  144. #define ID_PENPATTERN_DIAG3                2087
  145. #define ID_PENPATTERN_DIAG2                2088
  146. #define ID_PENPATTERN_DIAG1                2089
  147. #define ID_PENPATTERN_VERT                 2090
  148. #define ID_PENPATTERN_HORIZ                2091
  149. #define ID_PENPATTERN_DENSE8               2092
  150. #define ID_PENPATTERN_DENSE7               2093
  151. #define ID_PENPATTERN_DENSE6               2094
  152. #define ID_PENPATTERN_DENSE5               2095
  153. #define ID_PENPATTERN_DENSE4               2096
  154. #define ID_PENPATTERN_DENSE3               2097
  155. #define ID_PENPATTERN_DENSE2               2098
  156. #define ID_PENPATTERN_DENSE1               2099
  157. #define ID_PENPATTERN_NOSHADE              2100
  158. #define ID_PENTYPE_ALTERNATE               2101
  159. #define ID_PENTYPE_SOLID                   2102
  160. #define ID_PENTYPE_DASHDOUBLEDOT           2103
  161. #define ID_PENTYPE_LONGDASH                2104
  162. #define ID_PENTYPE_DOUBLEDOT               2105
  163. #define ID_PENTYPE_DASHDOT                 2106
  164. #define ID_PENTYPE_SHORTDASH               2107
  165. #define ID_PENTYPE_DOT                     2108
  166.  
  167. #endif
  168.