home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / devnews / vol2 / sample3 / sty_main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-05  |  9.4 KB  |  227 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. #define IDM_DEMOBROADCASTDLG                4194
  83.  
  84. #define IDM_DEMOMSGBOX                      4200
  85. #define IDM_DEMOMSGBOXOK                    4210
  86. #define IDM_DEMOMSGBOXOKCANCEL              4220
  87. #define IDM_DEMOMSGBOXYESNO                 4230
  88.  
  89. #define IDM_DEMOMSGBOXYESNOCANCEL           4240
  90. #define IDM_DEMOMSGBOXRETRYCANCEL           4250
  91. #define IDM_DEMOMSGBOXABORT                 4260
  92. #define IDM_DEMOMSGBOXENTER                 4270
  93. #define IDM_DEMOMSGBOXENTERCANCEL           4280
  94. #define IDM_DEMOMSGBOXQUERY                 4290
  95. #define IDM_DEMOMSGBOXWARNING               4300
  96. #define IDM_DEMOMSGBOXINFO                  4310
  97. #define IDM_DEMOMSGBOXCRITICAL              4320
  98. #define IDM_DEMOMSGBOXAPP                   4330
  99. #define IDM_DEMOMSGBOXSYS                   4340
  100. #define IDM_DEMOMSGBOXHELP                  4360
  101.  
  102. #define IDM_HELP                            9000
  103. #define IDM_HELPUSINGHELP                   9100
  104. #define IDM_HELPGENERAL                     9200
  105. #define IDM_HELPKEYS                        9300
  106. #define IDM_HELPINDEX                       9400
  107. #define IDM_HELPTUTORIAL                    9500
  108. #define IDM_HELPPRODINFO                    9600
  109.  
  110. #define IDM_NAME                            9701
  111. #define IDM_TEXT                            9702
  112. #define IDM_ICON                            9703
  113. #define IDM_DETAIL                          9704
  114. #define IDM_VIEWS                           9705
  115. #define IDD_CONTAINERMENU                   9706
  116.  
  117. /*--------------------------------------------------------------*\
  118.  *  Dialog item ids                                             *
  119. \*--------------------------------------------------------------*/
  120. #define ID_OK               1
  121. #define ID_CANCEL           2
  122.  
  123. /*--------------------------------------------------------------*\
  124.  *  Stringtable ids                                             *
  125. \*--------------------------------------------------------------*/
  126. #define IDS_FILEOPENEXT             1
  127. #define IDS_APPNAME                 2
  128. #define IDS_HELPLIBRARYNAME         3
  129. #define IDS_OPENDLGTITLE            4
  130. #define IDS_OPENDLGBUTTON           5
  131. #define IDS_HELPWINDOWTITLE         6
  132. #define IDS_SAVEDLGTITLE            7
  133. #define IDS_SAVEDLGBUTTON           8
  134. #define IDS_UNTITLED                9
  135. #define IDS_TITLEBARSEPARATOR      10
  136. #define IDS_PPFONTPOINT            14
  137. #define IDS_FONTDLGTITLE           15
  138.  
  139. #define IDS_DEMOMSGBOXOK           20
  140. #define IDS_DEMOMSGBOXOKCANCEL     21
  141. #define IDS_DEMOMSGBOXYESNO        22
  142. #define IDS_DEMOMSGBOXYESNOCANCEL  23
  143. #define IDS_DEMOMSGBOXRETRYCANCEL  24
  144. #define IDS_DEMOMSGBOXABORT        25
  145. #define IDS_DEMOMSGBOXENTER        26
  146. #define IDS_DEMOMSGBOXENTERCANCEL  27
  147. #define IDS_DEMOMSGBOXQUERY        28
  148. #define IDS_DEMOMSGBOXWARNING      29
  149. #define IDS_DEMOMSGBOXINFO         30
  150. #define IDS_DEMOMSGBOXCRITICAL     31
  151. #define IDS_DEMOMSGBOXAPP          32
  152. #define IDS_DEMOMSGBOXSYS          33
  153. #define IDS_DEMOMSGBOXHELP         35
  154.  
  155.  
  156. #define IDS_LISTBOX1               40
  157. #define IDS_LISTBOX2               41
  158. #define IDS_LISTBOX3               42
  159. #define IDS_LISTBOX4               43
  160. #define IDS_LISTBOX5               44
  161. #define IDS_LISTBOX6               45
  162. #define IDS_LISTBOX7               46
  163. #define IDS_LISTBOX8               47
  164. #define IDS_LISTBOX9               48
  165. #define IDS_LISTBOX10              49
  166.  
  167. #define IDS_BLUE                   50
  168. #define IDS_RED                    51
  169. #define IDS_PINK                   52
  170. #define IDS_GREEN                  53
  171. #define IDS_CYAN                   54
  172. #define IDS_YELLOW                 55
  173. #define IDS_DARKGRAY               56
  174. #define IDS_DARKBLUE               57
  175. #define IDS_DARKRED                58
  176. #define IDS_DARKPINK               59
  177. #define IDS_DARKGREEN              60
  178. #define IDS_DARKCYAN               61
  179. #define IDS_BROWN                  62
  180. #define IDS_PALEGRAY               63
  181. #define IDS_DEFAULT                64
  182. #define IDS_WARNING                65
  183.  
  184. #define IDS_FIRSTCOLOR             IDS_BLUE
  185.  
  186. /*--------------------------------------------------------------*\
  187.  *  Messagetable ids                                            *
  188. \*--------------------------------------------------------------*/
  189. #define IDMSG_INITFAILED                1
  190. #define IDMSG_MAINWINCREATEFAILED       2
  191. #define IDMSG_CANNOTOPENINPUTFILE       3
  192. #define IDMSG_CANNOTOPENOUTPUTFILE      4
  193. #define IDMSG_CANNOTRUNCOLOR            8
  194. #define IDMSG_CANNOTGETHPS              9
  195. #define IDMSG_HELPLOADERROR            10
  196. #define IDMSG_CANNOTLOADSTRING         11
  197. #define IDMSG_CANNOTOPENPRINTER        12
  198. #define IDMSG_HELPDISPLAYERROR         13
  199. #define IDMSG_CANNOTLOADEXITLIST       14
  200. #define IDMSG_OVERWRITEFILE            16
  201. #define IDMSG_UNDOFAILED               18
  202. #define IDMSG_CANNOTGETFILEINFO        19
  203. #define IDMSG_CANNOTALLOCATEMEMORY     20
  204. #define IDMSG_CANNOTREADFILE           21
  205. #define IDMSG_CANNOTWRITETOFILE        22
  206. #define IDMSG_CANNOTLOADFONTS          23
  207. #define IDMSG_CANNOTGETPAGEINFO        24
  208. #define IDMSG_CANNOTSETPP              26
  209. #define IDMSG_FILECHANGED              27
  210. #define IDMSG_ISOFAILED                28
  211. #define IDMSG_ISONOTTESTED             29
  212. #define IDMSG_VIRTDDNOTLOADED          30
  213. #define IDMSG_UNABLETOSEND             31
  214.  
  215. /*--------------------------------------------------------------*\
  216.  *  Other constants                                             *
  217. \*--------------------------------------------------------------*/
  218. #define MESSAGELEN          100   /* maximum length for messages */
  219. #define TITLESEPARATORLEN   4     /* length of title bar separator string */
  220.  
  221. #ifndef CCHMAXFILE
  222. #define CCHMAXFILE          80
  223. #endif
  224.  
  225. #define SM_SETFOCUS    (WM_USER+100)    /* message to set the focus to MLE */
  226.  
  227.