home *** CD-ROM | disk | FTP | other *** search
/ Software Express 1 & 2 / EXPRESS_002.iso / psnlffm / windows3 / tools / gebacom / cl_rc.h next >
Encoding:
C/C++ Source or Header  |  1994-04-12  |  12.4 KB  |  301 lines

  1. //-----------------------------------------
  2. //    Current version
  3. //-----------------------------------------
  4. #define GCCK_VERSION                      110
  5. #define GCCK_SVERSION                     "1.10"
  6. //-----------------------------------------
  7. //    User Messages
  8. //-----------------------------------------
  9. #define WM_HINTREQ                    (WM_USER+500)
  10. #define WM_DRAWCAPTION                (WM_USER+501)
  11. #define WM_DLGSHOW                    (WM_USER+502)
  12. #define WM_SETCTLHINT                 (WM_USER+503)
  13. #define WM_SETTEXTCOLOR               (WM_USER+504)
  14. //-----------------------------------------
  15.  
  16. //-----------------------------------------
  17. //    Dialog Style
  18. //-----------------------------------------
  19. #define DS_DROPDOWN                   0x8000
  20. //-----------------------------------------
  21.  
  22. //-----------------------------------------
  23. //    Color & Style Masks
  24. //-----------------------------------------
  25. #define CL_SMTEXTCOLOR                0xF
  26. #define CL_SMBKGNDCOLOR               0xF0
  27. #define CL_SMBORDERTYPE               0xC000
  28. #define CL_SMFONTTYPE                 0x3000
  29. //-----------------------------------------
  30. #define CL_NOBORDER                   0
  31. #define CL_RAISEDBORDER               0x8000
  32. #define CL_INSETBORDER                0x4000
  33. //-----------------------------------------
  34. #define CL_SIMPLEFONT                 0
  35. #define CL_RAISEDFONT                 0x2000
  36. #define CL_INSETFONT                  0x1000
  37. //-----------------------------------------
  38.  
  39. //-----------------------------------------
  40. //    New control styles
  41. //-----------------------------------------
  42. //    Push Buttons  
  43. //-----------------------------------------
  44. #define CL_BSDEFPUSHBUTTON            1
  45. #define CL_BSRIGHTBMP                 2
  46. #define CL_BSNODEFAULT                4
  47. #define CL_BSNOBITMAP                 8
  48. #define CL_BSNOADJUSTMENT             0x10
  49. //-----------------------------------------
  50. //    Radio Buttons
  51. //-----------------------------------------
  52. #define CL_RSLEFTTEXT                 0x200
  53. #define CL_RSNOTEXT                   0x20
  54. #define CL_RSAPPBMP                   0x10
  55. #define CL_SMRADIOFACE                0xF
  56. #define CL_RSREDEYE                   0
  57. #define CL_RSMSLIKE                   0x1
  58. #define CL_RSBORLANDLIKE              0x2   
  59. //-----------------------------------------
  60. //    Check Boxes
  61. //-----------------------------------------
  62. #define CL_CSLEFTTEXT                 0x200
  63. #define CL_CSNOTEXT                   0x20
  64. #define CL_CSAPPBMP                   0x10
  65. #define CL_SMCHECKFACE                0xF
  66. #define CL_CSBLUECROSS                0
  67. #define CL_CSMSLIKE                   0x1  
  68. #define CL_CSBORLANDLIKE              0x2
  69. #define CL_CSSWITCH                   0x3
  70. //-----------------------------------------
  71. //    Static
  72. //-----------------------------------------
  73. #define CL_SMMAINTYPE                 3
  74. #define CL_SSPANEL                    0
  75. #define CL_SSGROUPBOX                 1
  76. #define CL_SSBITMAP                   2
  77. #define CL_SSICON                     3
  78. #define CL_SMTEXTJUSTIFICATION        0xC
  79. #define CL_SSLEFTTEXT                 0
  80. #define CL_SSCENTERTEXT               4
  81. #define CL_SSRIGHTTEXT                8
  82. #define CL_SSMULTILINE                0xC
  83. #define CL_SSVCENTER                  0x20
  84. #define CL_SSTOP                      0
  85. #define CL_SSNOPREFIX                 0x40
  86. #define CL_SMBORDERWIDTH              0x180
  87. #define CL_SSNEXTCTLBORDER            0x200
  88. #define CL_SSBOTTOM                   0x400
  89. #define CL_SSNOADJUSTMENT             0x800
  90. #define CL_SSBWIDTH1                  0
  91. #define CL_SSBWIDTH2                  0x80
  92. #define CL_SSBWIDTH3                  0x100
  93. #define CL_SSBWIDTH4                  0x180
  94. #define CL_SSTRANSPARENT              WS_TABSTOP
  95. //-----------------------------------------
  96. //    Animated Control
  97. //-----------------------------------------
  98. #define CL_ASEVENTDRIVEN              0
  99. #define CL_ASTIMERDRIVEN              1
  100. #define CL_ASBMPBYTEXT                0
  101. #define CL_ASBMPBYID                  2
  102. //-----------------------------------------
  103. //    styles derived from Static Control
  104. //-----------------------------------------
  105. #define CL_ASLEFTTEXT                 0
  106. #define CL_ASCENTERTEXT               4
  107. #define CL_ASRIGHTTEXT                8
  108. #define CL_ASMULTILINE                0xC
  109. #define CL_ASVCENTER                  0x20
  110. #define CL_ASTOP                      0
  111. #define CL_ASNOPREFIX                 0x40
  112. #define CL_ASBOTTOM                   0x400
  113. #define CL_ASBWIDTH1                  0
  114. #define CL_ASBWIDTH2                  0x80
  115. #define CL_ASBWIDTH3                  0x100
  116. #define CL_ASBWIDTH4                  0x180
  117. //-----------------------------------------
  118. //    Scroll Control
  119. //-----------------------------------------
  120. #define CL_SMSCROLLFACE               0xF
  121. #define CL_SCSLINE                    0
  122. #define CL_SCSREDPOINT                1
  123. #define CL_SCSTRIANGLE                0
  124. #define CL_SCSPLUSMINUS               1
  125. #define CL_SCSBAR                     0
  126. #define CL_SCSCIRCLE                  1
  127. #define CL_SMSCROLLTYPE               0x30
  128. #define CL_SCSROTARY                  0x00
  129. #define CL_SCSHORZ                    0x10
  130. #define CL_SCSVERT                    0x20
  131. #define CL_SCSSPIN                    0x30
  132. //-----------------------------------------
  133. //    Gauge 
  134. //-----------------------------------------
  135. #define CL_SMGAUGETYPE                1
  136. #define CL_GSHORZ                     0
  137. #define CL_GSVERT                     1
  138. #define CL_GSENABLEMESSAGELOOP        2
  139. #define CL_GSLEFTTORIGHT              0
  140. #define CL_GSRIGHTTOLEFT              4
  141. #define CL_GSBOTTOMTOTOP              CL_GSLEFTTORIGHT
  142. #define CL_GSTOPTOBOTTOM              CL_GSRIGHTTOLEFT
  143. #define CL_GSSCALE                    8
  144. #define CL_GSSHOWPERCENT              0x10
  145. #define CL_GSCOLORBASED               0
  146. #define CL_GSBITMAPBASED              0x20
  147. #define CL_GSINSETBAR                 0x40
  148. #define CL_GSRAISEDBAR                0x200
  149. #define CL_GSNORMALBAR                0
  150. #define CL_SMGAUGEBARBORDERTYPE       0x240
  151. #define CL_SMGAUGEBARBORDERWIDTH      0xC00
  152. #define CL_GSBARBORDER1               0
  153. #define CL_GSBARBORDER2               0x400
  154. #define CL_GSBARBORDER3               0x800
  155. #define CL_GSBARBORDER4               0xC00
  156. #define CL_GSINSETPATH                CL_INSETBORDER
  157. #define CL_GSRAISEDPATH               CL_RAISEDBORDER
  158. #define CL_GSNORMALPATH               CL_NOBORDER
  159. #define CL_SMGAUGEPATHBORDERTYPE      CL_SMBORDERTYPE
  160. #define CL_SMGAUGEPATHBORDERWIDTH     CL_SMBORDERWIDTH
  161. #define CL_GSPATHBORDER1              CL_SSBWIDTH1
  162. #define CL_GSPATHBORDER2              CL_SSBWIDTH2
  163. #define CL_GSPATHBORDER3              CL_SSBWIDTH3
  164. #define CL_GSPATHBORDER4              CL_SSBWIDTH4
  165. //-----------------------------------------
  166. //    Dialog's background
  167. //-----------------------------------------
  168. #define CL_DLGBPAN                    0
  169. #define CL_DLGBAPPBMP                 1
  170. #define CL_DLGBDLLBMP                 2
  171. //-----------------------------------------
  172.  
  173. //-----------------------------------------
  174. //    Predefined Buttons
  175. //-----------------------------------------
  176. #define CL_OK                         1
  177. #define CL_CANCEL                     2
  178. #define CL_HELP                       3
  179. #define CL_YES                        4
  180. #define CL_NO                         5
  181. #define CL_NEW                        6
  182. #define CL_DELETE                     7 
  183. //-----------------------------------------
  184.  
  185. //-----------------------------------------
  186. //    Dialog's types & backgrounds
  187. //-----------------------------------------
  188. #define CL_WHITE1                    30001
  189. #define CL_WHITE2                    30002
  190. #define CL_GRAY1                     30003
  191. #define CL_GRAY2                     30004
  192. #define CL_GRAY3                     30005 
  193. #define CL_BLACK1                    30006
  194. #define CL_BLACK2                    30007
  195. //-----------------------------------------
  196.  
  197. //-----------------------------------------
  198. //    Button messages
  199. //-----------------------------------------
  200. #define BM_SETBITMAP                  (WM_USER+600)
  201. //-----------------------------------------
  202. //    Static control messages
  203. //-----------------------------------------
  204. #define SM_NOBLINK                    (WM_USER+1)
  205. #define SM_SETBKCOLOR                 (WM_USER+2)
  206. //-----------------------------------------
  207. //    Gauge messages
  208. //-----------------------------------------
  209. #define GM_INC                        (WM_USER+1)
  210. #define GM_DEC                        (WM_USER+2)
  211. #define GM_SETMAX                     (WM_USER+3)
  212. #define GM_GETMAX                     (WM_USER+4)
  213. #define GM_SETPOS                     (WM_USER+5)
  214. #define GM_GETPOS                     (WM_USER+6)
  215. #define GM_SETPATHCOLOR               (WM_USER+7) 
  216. #define GM_GETPATHCOLOR               (WM_USER+8)
  217. #define GM_SETBARCOLOR                (WM_USER+9)
  218. #define GM_GETBARCOLOR                (WM_USER+10)
  219. //-----------------------------------------
  220. //    Scroll Control Messages
  221. //-----------------------------------------
  222. #define SCM_SETPOS                    (WM_USER+1)
  223. #define SCM_GETPOS                    (WM_USER+2)
  224. #define SCM_SETRANGE                  (WM_USER+3)
  225. #define SCM_GETRANGE                  (WM_USER+4)
  226. #define SCM_SETSTARTANGLE             (WM_USER+5)
  227. #define SCM_SETENDANGLE               (WM_USER+6)
  228. #define SCM_SETSCALE                  (WM_USER+7)
  229. //-----------------------------------------
  230. //    Animated Control Messages
  231. //-----------------------------------------
  232. #define AM_SETPICWIDTH                (WM_USER+1)
  233. #define AM_SETCURPIC                  (WM_USER+2)
  234. #define AM_SHOWALLPIC                 (WM_USER+3)
  235. #define AM_SETPICMAX                  (WM_USER+4)
  236. #define AM_SETDELAY                   (WM_USER+5)
  237. #define AM_GETDELAY                   (WM_USER+6)
  238. #define AM_GETPICMAX                  (WM_USER+7)
  239. #define AM_GETCURPIC                  (WM_USER+8)
  240. #define AM_GETPICWIDTH                (WM_USER+9)
  241. #define AM_SETBITMAP                  (WM_USER+10)
  242. //-----------------------------------------
  243. //    Scroll Control Notifications
  244. //-----------------------------------------
  245. #define SCN_POSTRACK                  1
  246. #define SCN_POSCHANGED                2
  247. //-----------------------------------------
  248. //    Animated Control Notifications
  249. //-----------------------------------------
  250. #define AN_LBUTTONDOWN                1
  251. #define AN_LBUTTONUP                  2
  252. #define AN_CHANGE                     3
  253. //-----------------------------------------
  254. #define CL_RPUSHBASE                  21000
  255. #define CL_RCHECKBASE                 27000
  256. #define CL_RRADIOBASE                 25000
  257. //-----------------------------------------
  258. //    Gauge GM_SETPATHCOLOR/GM_SETBARCOLOR Brushes
  259. //-----------------------------------------
  260. #define CL_GBBLACK                    0 
  261. #define CL_GBRED                      1
  262. #define CL_GBGREEN                    2
  263. #define CL_GBSWAMP                    3
  264. #define CL_GBBLUE                     4
  265. #define CL_GBMAGENTA                  5
  266. #define CL_GBCYAN                     6
  267. #define CL_GBDARKGRAY                 7
  268. #define CL_GBLIGHTGRAY                8
  269. #define CL_GBLIGHTRED                 9 
  270. #define CL_GBLIGHTGREEN               10
  271. #define CL_GBYELLOW                   11
  272. #define CL_GBLIGHTBLUE                12
  273. #define CL_GBLIGHTMAGENTA             13
  274. #define CL_GBLIGHTCYAN                14
  275. #define CL_GBWHITE                    15
  276. //-----------------------------------------
  277. //    Text colors (WM_SETTEXTCOLOR)
  278. //-----------------------------------------
  279. #define CL_BLACK                      0 
  280. #define CL_RED                        1
  281. #define CL_GREEN                      2
  282. #define CL_SWAMP                      3
  283. #define CL_BLUE                       4
  284. #define CL_MAGENTA                    5
  285. #define CL_CYAN                       6
  286. #define CL_DARKGRAY                   7
  287. #define CL_DISABLED                   CL_DARKGRAY
  288. #define CL_LIGHTGRAY                  8
  289. #define CL_LIGHTRED                   9 
  290. #define CL_LIGHTGREEN                 10
  291. #define CL_YELLOW                     11
  292. #define CL_LIGHTBLUE                  12
  293. #define CL_LIGHTMAGENTA               13
  294. #define CL_LIGHTCYAN                  14
  295. #define CL_WHITE                      15
  296. //-----------------------------------------
  297. //    Gauge notifications
  298. //-----------------------------------------
  299. #define GN_PERCENT                    1
  300. //-----------------------------------------
  301.