home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / STYLE.ZIP / STY_MAIN.H < prev    next >
Text File  |  1992-03-30  |  9KB  |  221 lines

  1. /*************************************************************************
  2. *
  3. *  File Name   : STY_MAIN.H
  4. *
  5. *  Description : This header file contains the application wide constants
  6. *                and structure definitions.
  7. *
  8. *  Copyright (C) 1992 IBM Corporation
  9. *
  10. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  11. *      sample code created by IBM Corporation. This sample code is not
  12. *      part of any standard or IBM product and is provided to you solely
  13. *      for  the purpose of assisting you in the development of your
  14. *      applications.  The code is provided "AS IS", without
  15. *      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. ************************************************************************/
  20.  
  21. #define IDR_MAIN         1      /* resource identifier */
  22. #define IDR_ICON1        2      /* resource identifier */
  23. #define IDR_ICON2        3      /* resource identifier */
  24. #define IDR_ICON3        4      /* resource identifier */
  25. #define IDR_ICON4        5      /* resource identifier */
  26. #define IDR_BITMAP       6      /* resource identifier */
  27.  
  28. /*--------------------------------------------------------------*\
  29.  *  Dialog box ids                                              *
  30. \*--------------------------------------------------------------*/
  31. #define IDD_FILEOPEN    2000
  32. #define IDD_FILESAVE    2001
  33. #define IDD_FONT        2002
  34.  
  35. #define IDD_MSGBOX      1001
  36. #define ID_MLE          1002
  37.  
  38. /*--------------------------------------------------------------*\
  39.  *  Menu item ids                                               *
  40. \*--------------------------------------------------------------*/
  41. #define IDM_FILE                            1000
  42. #define IDM_FILENEW                         1100
  43. #define IDM_FILEOPEN                        1200
  44. #define IDM_FILESAVE                        1300
  45. #define IDM_FILESAVEAS                      1400
  46. #define IDM_EXIT                            1900
  47.  
  48. #define IDM_EDIT                            2000
  49. #define IDM_EDITUNDO                        2100
  50. #define IDM_EDITCUT                         2200
  51. #define IDM_EDITCOPY                        2300
  52. #define IDM_EDITPASTE                       2400
  53. #define IDM_EDITCLEAR                       2500
  54.  
  55. #define IDM_OPTIONS                         3000
  56. #define IDM_OPTIONSFORECOLOR                3100
  57. #define IDM_OPTIONSFORECOLORBLACK           3110
  58. #define IDM_OPTIONSFORECOLORBLUE            3120
  59. #define IDM_OPTIONSFORECOLORRED             3130
  60. #define IDM_OPTIONSFORECOLORDEFAULT         3140
  61. #define IDM_OPTIONSBACKCOLOR                3200
  62. #define IDM_OPTIONSBACKCOLORYELLOW          3210
  63. #define IDM_OPTIONSBACKCOLORPINK            3220
  64. #define IDM_OPTIONSBACKCOLORCYAN            3230
  65. #define IDM_OPTIONSBACKCOLORDEFAULT         3240
  66. #define IDM_OPTIONSFONT                     3300
  67.  
  68. #define IDM_DEMO                            4000
  69. #define IDM_DEMODLG                         4100
  70. #define IDM_DEMODLGBUTTONS                  4110
  71. #define IDM_DEMODLGLISTBOXES                4120
  72. #define IDM_DEMODLGCOMBOBOXES               4130
  73. #define IDM_DEMODLGENTRYFIELDS              4140
  74. #define IDM_DEMODLGSTATIC                   4150
  75. #define IDM_DEMODLGPP                       4160
  76. #define IDM_DEMODLGSLIDER                   4170
  77. #define IDM_DEMODLGSPINBUTTON               4180
  78. #define IDM_DEMODLGVALUESET                 4190
  79. #define IDM_DEMODLGNOTEBOOK                 4191
  80. #define IDM_DEMODLGCONTAINER                4192
  81. #define IDM_DEMOCUACONTROLS                 4193
  82.  
  83. #define IDM_DEMOMSGBOX                      4200
  84. #define IDM_DEMOMSGBOXOK                    4210
  85. #define IDM_DEMOMSGBOXOKCANCEL              4220
  86. #define IDM_DEMOMSGBOXYESNO                 4230
  87.  
  88. #define IDM_DEMOMSGBOXYESNOCANCEL           4240
  89. #define IDM_DEMOMSGBOXRETRYCANCEL           4250
  90. #define IDM_DEMOMSGBOXABORT                 4260
  91. #define IDM_DEMOMSGBOXENTER                 4270
  92. #define IDM_DEMOMSGBOXENTERCANCEL           4280
  93. #define IDM_DEMOMSGBOXQUERY                 4290
  94. #define IDM_DEMOMSGBOXWARNING               4300
  95. #define IDM_DEMOMSGBOXINFO                  4310
  96. #define IDM_DEMOMSGBOXCRITICAL              4320
  97. #define IDM_DEMOMSGBOXAPP                   4330
  98. #define IDM_DEMOMSGBOXSYS                   4340
  99. #define IDM_DEMOMSGBOXHELP                  4360
  100.  
  101. #define IDM_HELP                            9000
  102. #define IDM_HELPUSINGHELP                   9100
  103. #define IDM_HELPGENERAL                     9200
  104. #define IDM_HELPKEYS                        9300
  105. #define IDM_HELPINDEX                       9400
  106. #define IDM_HELPTUTORIAL                    9500
  107. #define IDM_HELPPRODINFO                    9600
  108.  
  109. #define IDM_NAME                            9701
  110. #define IDM_TEXT                            9702
  111. #define IDM_ICON                            9703
  112. #define IDM_DETAIL                          9704
  113. #define IDM_VIEWS                           9705
  114. #define IDD_CONTAINERMENU                   9706
  115.  
  116. /*--------------------------------------------------------------*\
  117.  *  Dialog item ids                                             *
  118. \*--------------------------------------------------------------*/
  119. #define ID_OK               1
  120. #define ID_CANCEL           2
  121.  
  122. /*--------------------------------------------------------------*\
  123.  *  Stringtable ids                                             *
  124. \*--------------------------------------------------------------*/
  125. #define IDS_FILEOPENEXT             1
  126. #define IDS_APPNAME                 2
  127. #define IDS_HELPLIBRARYNAME         3
  128. #define IDS_OPENDLGTITLE            4
  129. #define IDS_OPENDLGBUTTON           5
  130. #define IDS_HELPWINDOWTITLE         6
  131. #define IDS_SAVEDLGTITLE            7
  132. #define IDS_SAVEDLGBUTTON           8
  133. #define IDS_UNTITLED                9
  134. #define IDS_TITLEBARSEPARATOR      10
  135. #define IDS_PPFONTPOINT            14
  136. #define IDS_FONTDLGTITLE           15
  137.  
  138. #define IDS_DEMOMSGBOXOK           20
  139. #define IDS_DEMOMSGBOXOKCANCEL     21
  140. #define IDS_DEMOMSGBOXYESNO        22
  141. #define IDS_DEMOMSGBOXYESNOCANCEL  23
  142. #define IDS_DEMOMSGBOXRETRYCANCEL  24
  143. #define IDS_DEMOMSGBOXABORT        25
  144. #define IDS_DEMOMSGBOXENTER        26
  145. #define IDS_DEMOMSGBOXENTERCANCEL  27
  146. #define IDS_DEMOMSGBOXQUERY        28
  147. #define IDS_DEMOMSGBOXWARNING      29
  148. #define IDS_DEMOMSGBOXINFO         30
  149. #define IDS_DEMOMSGBOXCRITICAL     31
  150. #define IDS_DEMOMSGBOXAPP          32
  151. #define IDS_DEMOMSGBOXSYS          33
  152. #define IDS_DEMOMSGBOXHELP         35
  153.  
  154.  
  155. #define IDS_LISTBOX1               40
  156. #define IDS_LISTBOX2               41
  157. #define IDS_LISTBOX3               42
  158. #define IDS_LISTBOX4               43
  159. #define IDS_LISTBOX5               44
  160. #define IDS_LISTBOX6               45
  161. #define IDS_LISTBOX7               46
  162. #define IDS_LISTBOX8               47
  163. #define IDS_LISTBOX9               48
  164. #define IDS_LISTBOX10              49
  165.  
  166. #define IDS_BLUE                   50
  167. #define IDS_RED                    51
  168. #define IDS_PINK                   52
  169. #define IDS_GREEN                  53
  170. #define IDS_CYAN                   54
  171. #define IDS_YELLOW                 55
  172. #define IDS_DARKGRAY               56
  173. #define IDS_DARKBLUE               57
  174. #define IDS_DARKRED                58
  175. #define IDS_DARKPINK               59
  176. #define IDS_DARKGREEN              60
  177. #define IDS_DARKCYAN               61
  178. #define IDS_BROWN                  62
  179. #define IDS_PALEGRAY               63
  180. #define IDS_DEFAULT                64
  181.  
  182. #define IDS_FIRSTCOLOR             IDS_BLUE
  183.  
  184. /*--------------------------------------------------------------*\
  185.  *  Messagetable ids                                            *
  186. \*--------------------------------------------------------------*/
  187. #define IDMSG_INITFAILED                1
  188. #define IDMSG_MAINWINCREATEFAILED       2
  189. #define IDMSG_CANNOTOPENINPUTFILE       3
  190. #define IDMSG_CANNOTOPENOUTPUTFILE      4
  191. #define IDMSG_CANNOTRUNCOLOR            8
  192. #define IDMSG_CANNOTGETHPS              9
  193. #define IDMSG_HELPLOADERROR            10
  194. #define IDMSG_CANNOTLOADSTRING         11
  195. #define IDMSG_CANNOTOPENPRINTER        12
  196. #define IDMSG_HELPDISPLAYERROR         13
  197. #define IDMSG_CANNOTLOADEXITLIST       14
  198. #define IDMSG_OVERWRITEFILE            16
  199. #define IDMSG_UNDOFAILED               18
  200. #define IDMSG_CANNOTGETFILEINFO        19
  201. #define IDMSG_CANNOTALLOCATEMEMORY     20
  202. #define IDMSG_CANNOTREADFILE           21
  203. #define IDMSG_CANNOTWRITETOFILE        22
  204. #define IDMSG_CANNOTLOADFONTS          23
  205. #define IDMSG_CANNOTGETPAGEINFO        24
  206. #define IDMSG_CANNOTSETPP              26
  207. #define IDMSG_FILECHANGED              27
  208.  
  209. /*--------------------------------------------------------------*\
  210.  *  Other constants                                             *
  211. \*--------------------------------------------------------------*/
  212. #define MESSAGELEN          50    /* maximum length for messages */
  213. #define TITLESEPARATORLEN   4     /* length of title bar separator string */
  214.  
  215. #ifndef CCHMAXFILE
  216. #define CCHMAXFILE          80
  217. #endif
  218.  
  219. #define SM_SETFOCUS     WM_USER+100     /* message to set the focus to MLE */
  220.  
  221.