home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / BIDI / HEBREW / STYLE / STY_MAIN.H < prev    next >
Text File  |  1994-11-17  |  12KB  |  300 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. #define IDR_TOWER        7      /* resource identifier */
  28. #define IDR_GLOBE        8      /* resource identifier */
  29. #define IDR_WATERFALL    9      /* resource identifier */
  30. #define IDR_KEY         10      /* resource identifier */
  31.  
  32. /*--------------------------------------------------------------*\
  33.  *  Dialog box ids                                              *
  34. \*--------------------------------------------------------------*/
  35. #define IDD_FILEOPEN    2000
  36. #define IDD_FILESAVE    2001
  37. #define IDD_FONT        2002
  38.  
  39. #define IDD_MSGBOX      1001
  40. #define ID_MLE          1002
  41.  
  42. /*--------------------------------------------------------------*\
  43.  *  Menu item ids                                               *
  44. \*--------------------------------------------------------------*/
  45. #define IDM_FILE                            1000
  46. #define IDM_FILENEW                         1100
  47. #define IDM_FILEOPEN                        1200
  48. #define IDM_FILESAVE                        1300
  49. #define IDM_FILESAVEAS                      1400
  50. #define IDM_EXIT                            1900
  51.  
  52. #define IDM_EDIT                            2000
  53.  
  54. #define IDM_EDITCOPY_NOCONV                 2100
  55. #define IDM_EDITCOPY_AUTOCONV               2101
  56. #define IDM_EDITCOPY_CONV_VISUAL            2102
  57. #define IDM_EDITCOPY_CONV_IMPLICIT          2103
  58.  
  59. #define IDM_EDITPASTE_NOCONV                2300
  60. #define IDM_EDITPASTE_AUTOCONV              2301
  61. #define IDM_EDITPASTE_CONV_VISUAL           2302
  62. #define IDM_EDITPASTE_CONV_IMPLICIT         2303
  63.  
  64. #define IDM_OPTIONS                         3000
  65. #define IDM_OPTIONSFORECOLOR                3100
  66. #define IDM_OPTIONSFORECOLORBLACK           3110
  67. #define IDM_OPTIONSFORECOLORBLUE            3120
  68. #define IDM_OPTIONSFORECOLORRED             3130
  69. #define IDM_OPTIONSFORECOLORDEFAULT         3140
  70. #define IDM_OPTIONSBACKCOLOR                3200
  71. #define IDM_OPTIONSBACKCOLORYELLOW          3210
  72. #define IDM_OPTIONSBACKCOLORPINK            3220
  73. #define IDM_OPTIONSBACKCOLORCYAN            3230
  74. #define IDM_OPTIONSBACKCOLORDEFAULT         3240
  75. #define IDM_OPTIONSFONT                     3300
  76.  
  77. #define IDM_DEMO                            4000
  78. #define IDM_DEMODLG                         4100
  79. #define IDM_DEMODLGBUTTONS                  4110
  80. #define IDM_DEMODLGLISTBOXES                4120
  81. #define IDM_DEMODLGCOMBOBOXES               4130
  82. #define IDM_DEMODLG_SL_ENTRYFIELDS          4140
  83. #define IDM_DEMODLG_ML_ENTRYFIELDS          4141
  84. #define IDM_DEMODLGSTATIC                   4150
  85. #define IDM_DEMODLGPP                       4160
  86. #define IDM_DEMODLGSLIDER                   4170
  87. #define IDM_DEMODLGSPINBUTTON               4180
  88. #define IDM_DEMODLGVALUESET                 4190
  89. #define IDM_DEMODLGNOTEBOOK                 4191
  90. #define IDM_DEMODLGCONTAINER                4192
  91. #define IDM_DEMOCUACONTROLS                 4193
  92.  
  93. #define IDM_DEMOMSGBOX                      4200
  94. #define IDM_DEMOMSGBOXOK                    4210
  95. #define IDM_DEMOMSGBOXOKCANCEL              4220
  96. #define IDM_DEMOMSGBOXYESNO                 4230
  97.  
  98. #define IDM_DEMOMSGBOXYESNOCANCEL           4240
  99. #define IDM_DEMOMSGBOXRETRYCANCEL           4250
  100. #define IDM_DEMOMSGBOXABORT                 4260
  101. #define IDM_DEMOMSGBOXENTER                 4270
  102. #define IDM_DEMOMSGBOXENTERCANCEL           4280
  103. #define IDM_DEMOMSGBOXQUERY                 4290
  104. #define IDM_DEMOMSGBOXWARNING               4300
  105. #define IDM_DEMOMSGBOXINFO                  4310
  106. #define IDM_DEMOMSGBOXCRITICAL              4320
  107. #define IDM_DEMOMSGBOXAPP                   4330
  108. #define IDM_DEMOMSGBOXSYS                   4340
  109. #define IDM_DEMOMSGBOXHELP                  4360
  110.  
  111. #define IDM_TEXTCONV                        5000
  112.  
  113. #define IDM_MENU                            6000
  114. #define IDM_MENU_SIMPLETEXT                 6100
  115. #define IDM_MENU_COLUMNS                    6200
  116. #define IDM_MENU_TABTEXT                    6300
  117. #define IDM_MENU_TABTEXTCOL                 6400
  118. #define IDM_MENU_ALLIGNTEXT                 6500
  119. #define IDM_MENU_ALLIGNTEXTCOL              6600
  120. #define IDM_MENU_ALIGNTABTEXTCOL            6700
  121. #define IDM_MENU_INVERSE                    6800
  122.  
  123. #define IDM_HELP                            9000
  124. #define IDM_HELPUSINGHELP                   9100
  125. #define IDM_HELPGENERAL                     9200
  126. #define IDM_HELPKEYS                        9300
  127. #define IDM_HELPINDEX                       9400
  128. #define IDM_HELPTUTORIAL                    9500
  129. #define IDM_HELPPRODINFO                    9600
  130.  
  131. #define IDM_NAME                            9701
  132. #define IDM_TEXT                            9702
  133. #define IDM_ICON                            9703
  134. #define IDM_DETAIL                          9704
  135. #define IDM_VIEWS                           9705
  136. #define IDD_CONTAINERMENU                   9706
  137.  
  138. /*--------------------------------------------------------------*\
  139.  *  Dialog item ids                                             *
  140. \*--------------------------------------------------------------*/
  141. #define ID_OK               1
  142. #define ID_CANCEL           2
  143.  
  144. /*--------------------------------------------------------------*\
  145.  *  Stringtable ids                                             *
  146. \*--------------------------------------------------------------*/
  147. #define ARA_OFF                     0x1000
  148.  
  149. #define IDS_FILEOPENEXT             1
  150. #define IDS_APPNAME                 2
  151. #define IDS_HELPLIBRARYNAME         3
  152. #define IDS_OPENDLGTITLE            4
  153. #define IDS_OPENDLGBUTTON           5
  154. #define IDS_HELPWINDOWTITLE         6
  155. #define IDS_SAVEDLGTITLE            7
  156. #define IDS_SAVEDLGBUTTON           8
  157. #define IDS_UNTITLED                9
  158. #define IDS_TITLEBARSEPARATOR      10
  159. #define IDS_PPFONTPOINT            14
  160. #define IDS_FONTDLGTITLE           15
  161. #define IDS_HELPBDLIBRARYNAME      16
  162.  
  163. #define IDS_DEMOMSGBOXOK           20
  164. #define IDS_DEMOMSGBOXOKCANCEL     21
  165. #define IDS_DEMOMSGBOXYESNO        22
  166. #define IDS_DEMOMSGBOXYESNOCANCEL  23
  167. #define IDS_DEMOMSGBOXRETRYCANCEL  24
  168. #define IDS_DEMOMSGBOXABORT        25
  169. #define IDS_DEMOMSGBOXENTER        26
  170. #define IDS_DEMOMSGBOXENTERCANCEL  27
  171. #define IDS_DEMOMSGBOXQUERY        28
  172. #define IDS_DEMOMSGBOXWARNING      29
  173. #define IDS_DEMOMSGBOXINFO         30
  174. #define IDS_DEMOMSGBOXCRITICAL     31
  175. #define IDS_DEMOMSGBOXAPP          32
  176. #define IDS_DEMOMSGBOXSYS          33
  177. #define IDS_DEMOMSGBOXHELP         35
  178.  
  179.  
  180. #define IDS_LISTBOX1_1               40
  181. #define IDS_LISTBOX1_2               41
  182. #define IDS_LISTBOX1_3               42
  183. #define IDS_LISTBOX1_4               43
  184. #define IDS_LISTBOX1_5               44
  185. #define IDS_LISTBOX1_6               45
  186. #define IDS_LISTBOX1_7               46
  187. #define IDS_LISTBOX1_8               47
  188. #define IDS_LISTBOX1_9               48
  189. #define IDS_LISTBOX1_10              49
  190.  
  191. #define IDS_BLUE                   50
  192. #define IDS_RED                    51
  193. #define IDS_PINK                   52
  194. #define IDS_GREEN                  53
  195. #define IDS_CYAN                   54
  196. #define IDS_YELLOW                 55
  197. #define IDS_DARKGRAY               56
  198. #define IDS_DARKBLUE               57
  199. #define IDS_DARKRED                58
  200. #define IDS_DARKPINK               59
  201. #define IDS_DARKGREEN              60
  202. #define IDS_DARKCYAN               61
  203. #define IDS_BROWN                  62
  204. #define IDS_PALEGRAY               63
  205. #define IDS_DEFAULT                64
  206.  
  207. #define IDS_FIRSTCOLOR             IDS_BLUE
  208.  
  209.  
  210. #define IDS_LISTBOX2_1               70
  211. #define IDS_LISTBOX2_2               71
  212. #define IDS_LISTBOX2_3               72
  213. #define IDS_LISTBOX2_4               73
  214. #define IDS_LISTBOX2_5               74
  215. #define IDS_LISTBOX2_6               75
  216. #define IDS_LISTBOX2_7               76
  217. #define IDS_LISTBOX2_8               77
  218. #define IDS_LISTBOX2_9               78
  219. #define IDS_LISTBOX2_10              79
  220.  
  221. #define IDS_CNR_TITLE                80
  222. #define IDS_CNR_COLUMNTITLE          82
  223. #define IDS_CNR_PICTURE              84
  224. #define IDS_CNR_TOWER                86
  225. #define IDS_CNR_WATERFALL            88
  226. #define IDS_CNR_GLOBE                90
  227. #define IDS_CNR_KEY                  92
  228. #define IDS_BOOK_PAGE2               94
  229. #define IDS_BOOK_STL1                96
  230. #define IDS_BOOK_STL2                98
  231. #define IDS_BOOK_STL3                99
  232. #define IDS_SPIN_WHITE              100
  233. #define IDS_SPIN_BLACK              102
  234. #define IDS_SPIN_BLUE               104
  235. #define IDS_SPIN_RED                106
  236. #define IDS_SPIN_PINK               108
  237. #define IDS_SPIN_GREEN              110
  238. #define IDS_SPIN_CYAN               112
  239. #define IDS_SPIN_YELLOW             114
  240. #define IDS_SPIN_DARKGREY           116
  241. #define IDS_SPIN_DARKBLUE           118
  242. #define IDS_SPIN_DARKRED            120
  243. #define IDS_SPIN_DARKPINK           122
  244. #define IDS_SPIN_DARKGREEN          124
  245. #define IDS_SPIN_DARKCYAN           126
  246. #define IDS_SPIN_BROWN              128
  247. #define IDS_SPIN_PALEGREY           130
  248. #define IDS_BOOK_TAB1MA             131
  249. #define IDS_BOOK_TAB1MI1            132
  250. #define IDS_BOOK_TAB1MI2            133
  251. #define IDS_BOOK_TAB2MA             134
  252. #define IDS_BOOK_TITLE              135
  253.  
  254. #define IDS_COPYVISUALTEXT          140
  255. #define IDS_COPYIMPLICITTEXT        141
  256.  
  257. #define IDS_CONVTEXT                142
  258. /*--------------------------------------------------------------*\
  259.  *  Messagetable ids                                            *
  260. \*--------------------------------------------------------------*/
  261. #define IDMSG_INITFAILED                1
  262. #define IDMSG_MAINWINCREATEFAILED       2
  263. #define IDMSG_CANNOTOPENINPUTFILE       3
  264. #define IDMSG_CANNOTOPENOUTPUTFILE      4
  265. #define IDMSG_CANNOTRUNCOLOR            8
  266. #define IDMSG_CANNOTGETHPS              9
  267. #define IDMSG_HELPLOADERROR            10
  268. #define IDMSG_CANNOTLOADSTRING         11
  269. #define IDMSG_CANNOTOPENPRINTER        12
  270. #define IDMSG_HELPDISPLAYERROR         13
  271. #define IDMSG_CANNOTLOADEXITLIST       14
  272. #define IDMSG_OVERWRITEFILE            16
  273. #define IDMSG_UNDOFAILED               18
  274. #define IDMSG_CANNOTGETFILEINFO        19
  275. #define IDMSG_CANNOTALLOCATEMEMORY     20
  276. #define IDMSG_CANNOTREADFILE           21
  277. #define IDMSG_CANNOTWRITETOFILE        22
  278. #define IDMSG_CANNOTLOADFONTS          23
  279. #define IDMSG_CANNOTGETPAGEINFO        24
  280. #define IDMSG_CANNOTSETPP              26
  281. #define IDMSG_FILECHANGED              27
  282.  
  283. #define IDMSG_TEST_SUCCESSFUL          28
  284. #define IDMSG_TEST_ERROR               29
  285.  
  286. /*--------------------------------------------------------------*\
  287.  *  Other constants                                             *
  288. \*--------------------------------------------------------------*/
  289. #define MESSAGELEN          50    /* maximum length for messages */
  290. #define TITLESEPARATORLEN   4     /* length of title bar separator string */
  291.  
  292. #ifndef CCHMAXFILE
  293. #define CCHMAXFILE          80
  294. #endif
  295.  
  296. #define SM_SETFOCUS     WM_USER+100     /* message to set the focus to MLE */
  297.  
  298.  
  299.  
  300.