home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / bidi / arabic / style / sty_main.h < prev    next >
Text File  |  1999-05-11  |  12KB  |  299 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.  
  162. #define IDS_DEMOMSGBOXOK           20
  163. #define IDS_DEMOMSGBOXOKCANCEL     21
  164. #define IDS_DEMOMSGBOXYESNO        22
  165. #define IDS_DEMOMSGBOXYESNOCANCEL  23
  166. #define IDS_DEMOMSGBOXRETRYCANCEL  24
  167. #define IDS_DEMOMSGBOXABORT        25
  168. #define IDS_DEMOMSGBOXENTER        26
  169. #define IDS_DEMOMSGBOXENTERCANCEL  27
  170. #define IDS_DEMOMSGBOXQUERY        28
  171. #define IDS_DEMOMSGBOXWARNING      29
  172. #define IDS_DEMOMSGBOXINFO         30
  173. #define IDS_DEMOMSGBOXCRITICAL     31
  174. #define IDS_DEMOMSGBOXAPP          32
  175. #define IDS_DEMOMSGBOXSYS          33
  176. #define IDS_DEMOMSGBOXHELP         35
  177.  
  178.  
  179. #define IDS_LISTBOX1_1               40
  180. #define IDS_LISTBOX1_2               41
  181. #define IDS_LISTBOX1_3               42
  182. #define IDS_LISTBOX1_4               43
  183. #define IDS_LISTBOX1_5               44
  184. #define IDS_LISTBOX1_6               45
  185. #define IDS_LISTBOX1_7               46
  186. #define IDS_LISTBOX1_8               47
  187. #define IDS_LISTBOX1_9               48
  188. #define IDS_LISTBOX1_10              49
  189.  
  190. #define IDS_BLUE                   50
  191. #define IDS_RED                    51
  192. #define IDS_PINK                   52
  193. #define IDS_GREEN                  53
  194. #define IDS_CYAN                   54
  195. #define IDS_YELLOW                 55
  196. #define IDS_DARKGRAY               56
  197. #define IDS_DARKBLUE               57
  198. #define IDS_DARKRED                58
  199. #define IDS_DARKPINK               59
  200. #define IDS_DARKGREEN              60
  201. #define IDS_DARKCYAN               61
  202. #define IDS_BROWN                  62
  203. #define IDS_PALEGRAY               63
  204. #define IDS_DEFAULT                64
  205.  
  206. #define IDS_FIRSTCOLOR             IDS_BLUE
  207.  
  208.  
  209. #define IDS_LISTBOX2_1               70
  210. #define IDS_LISTBOX2_2               71
  211. #define IDS_LISTBOX2_3               72
  212. #define IDS_LISTBOX2_4               73
  213. #define IDS_LISTBOX2_5               74
  214. #define IDS_LISTBOX2_6               75
  215. #define IDS_LISTBOX2_7               76
  216. #define IDS_LISTBOX2_8               77
  217. #define IDS_LISTBOX2_9               78
  218. #define IDS_LISTBOX2_10              79
  219.  
  220. #define IDS_CNR_TITLE                80
  221. #define IDS_CNR_COLUMNTITLE          82
  222. #define IDS_CNR_PICTURE              84
  223. #define IDS_CNR_TOWER                86
  224. #define IDS_CNR_WATERFALL            88
  225. #define IDS_CNR_GLOBE                90
  226. #define IDS_CNR_KEY                  92
  227. #define IDS_BOOK_PAGE2               94
  228. #define IDS_BOOK_STL1                96
  229. #define IDS_BOOK_STL2                98
  230. #define IDS_BOOK_STL3                99
  231. #define IDS_SPIN_WHITE              100
  232. #define IDS_SPIN_BLACK              102
  233. #define IDS_SPIN_BLUE               104
  234. #define IDS_SPIN_RED                106
  235. #define IDS_SPIN_PINK               108
  236. #define IDS_SPIN_GREEN              110
  237. #define IDS_SPIN_CYAN               112
  238. #define IDS_SPIN_YELLOW             114
  239. #define IDS_SPIN_DARKGREY           116
  240. #define IDS_SPIN_DARKBLUE           118
  241. #define IDS_SPIN_DARKRED            120
  242. #define IDS_SPIN_DARKPINK           122
  243. #define IDS_SPIN_DARKGREEN          124
  244. #define IDS_SPIN_DARKCYAN           126
  245. #define IDS_SPIN_BROWN              128
  246. #define IDS_SPIN_PALEGREY           130
  247. #define IDS_BOOK_TAB1MA             131
  248. #define IDS_BOOK_TAB1MI1            132
  249. #define IDS_BOOK_TAB1MI2            133
  250. #define IDS_BOOK_TAB2MA             134
  251. #define IDS_BOOK_TITLE              135
  252.  
  253. #define IDS_COPYVISUALTEXT          140
  254. #define IDS_COPYIMPLICITTEXT        141
  255.  
  256. #define IDS_CONVTEXT                142
  257. /*--------------------------------------------------------------*\
  258.  *  Messagetable ids                                            *
  259. \*--------------------------------------------------------------*/
  260. #define IDMSG_INITFAILED                1
  261. #define IDMSG_MAINWINCREATEFAILED       2
  262. #define IDMSG_CANNOTOPENINPUTFILE       3
  263. #define IDMSG_CANNOTOPENOUTPUTFILE      4
  264. #define IDMSG_CANNOTRUNCOLOR            8
  265. #define IDMSG_CANNOTGETHPS              9
  266. #define IDMSG_HELPLOADERROR            10
  267. #define IDMSG_CANNOTLOADSTRING         11
  268. #define IDMSG_CANNOTOPENPRINTER        12
  269. #define IDMSG_HELPDISPLAYERROR         13
  270. #define IDMSG_CANNOTLOADEXITLIST       14
  271. #define IDMSG_OVERWRITEFILE            16
  272. #define IDMSG_UNDOFAILED               18
  273. #define IDMSG_CANNOTGETFILEINFO        19
  274. #define IDMSG_CANNOTALLOCATEMEMORY     20
  275. #define IDMSG_CANNOTREADFILE           21
  276. #define IDMSG_CANNOTWRITETOFILE        22
  277. #define IDMSG_CANNOTLOADFONTS          23
  278. #define IDMSG_CANNOTGETPAGEINFO        24
  279. #define IDMSG_CANNOTSETPP              26
  280. #define IDMSG_FILECHANGED              27
  281.  
  282. #define IDMSG_TEST_SUCCESSFUL          28
  283. #define IDMSG_TEST_ERROR               29
  284.  
  285. /*--------------------------------------------------------------*\
  286.  *  Other constants                                             *
  287. \*--------------------------------------------------------------*/
  288. #define MESSAGELEN          50    /* maximum length for messages */
  289. #define TITLESEPARATORLEN   4     /* length of title bar separator string */
  290.  
  291. #ifndef CCHMAXFILE
  292. #define CCHMAXFILE          80
  293. #endif
  294.  
  295. #define SM_SETFOCUS     WM_USER+100     /* message to set the focus to MLE */
  296.  
  297.  
  298.  
  299.