home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / 2D-DRAW / 2D-DRAW.H < prev    next >
Text File  |  1995-04-04  |  8KB  |  162 lines

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