home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / BIDI / HEBREW / TELDIR / TELDIR.H < prev    next >
Text File  |  1994-11-17  |  5KB  |  148 lines

  1. /* --------------------------- */
  2. /*    teldir - header file     */
  3. /* --------------------------- */
  4.  
  5. /* Identifiers Predeclarations  */
  6.  
  7. #define DID_OK              1
  8. #define DID_CANCEL          2
  9. #define ID_ABOUT            3
  10. #define MAX_NAMES           100            /* maximum number of entries in */
  11.                                            /* the telephone directory      */
  12. #define IDM_ORGMENU         9000
  13. #define IDM_FILE            9001
  14. #define IDM_VIEW            9002
  15. #define IDM_HELP            9003
  16. #define IDM_SAVE            9006
  17. #define IDM_QUIT            9007
  18. #define IDM_ABOUT           9008
  19. #define IDM_ASCENDING       9009
  20. #define IDM_DESCENDING      9010
  21. #define IDM_OK              9011
  22. #define IDM_HEB             9012
  23. #define IDM_ENG             9013
  24. #define IDM_ENGLISHMENU     9014
  25. #define IDM_LANG            9015
  26. //Start_Help
  27. #define IDM_HELPEXTENDED    9016
  28. //End_Help
  29.  
  30. #define ID_NAMES_LIST       2000
  31. #define ID_LISTBOX          2001
  32. #define ID_CHOICES          2002
  33. #define ID_ADDNAME          2003
  34. #define ID_DELETE           2004
  35. #define ID_UPDATE           2005
  36. #define ID_SEARCH           2006
  37. #define ID_NAME             2007
  38. #define ID_TELEPHONE        2008
  39. #define ID_INPUT_NAME       2009
  40. #define ID_TELEPHONE_NUMBER 2010
  41. #define ID_ENTER            200
  42.  
  43. #define ID_TELDIR           2
  44. #define ID_CLOCK            3
  45. #define ID_TIMER            100
  46.  
  47. // IDs for Hebrew Strings
  48. #define ID_TITLE_H            500
  49. #define ID_NAMES_H            501
  50. #define ID_ADD_H              502
  51. #define ID_REMOVE_H           503
  52. #define ID_MODIFY_H           504
  53. #define ID_FIND_H             505
  54. #define ID_CHOICE_H           506
  55. #define ID_ENTERNAME_H        507
  56. #define ID_TELNUMBER_H        508
  57. #define ID_DO_H               509
  58. #define ID_SAVEFILE_H         510
  59. #define ID_EXIT_H             511
  60. #define ID_USES_H             512
  61. #define ID_ERROR_H            513
  62. #define ID_HELP_H             514
  63. #define ID_ERRINADD_H         515
  64. #define ID_ERRINMODIFY_H      516
  65. #define ID_ERRINSEARCH_H      517
  66. #define ID_ERRINREMOVE_H      518
  67. #define ID_INFORMATION_H      519
  68. #define ID_CANNOTLOADSTRING_H 520
  69. #define ID_HELPLOADERROR_H    521
  70. #define ID_HELPDISPLAYERROR_H 522
  71. #define ID_HELPLIBRARYNAME_H  523
  72. #define ID_HELPWINDOWTITLE_H  524
  73.  
  74. // IDs for English Strings (offset 100 from English)
  75. #define ID_TITLE              600
  76. #define ID_NAMES              601
  77. #define ID_ADD                602
  78. #define ID_REMOVE             603
  79. #define ID_MODIFY             604
  80. #define ID_FIND               605
  81. #define ID_CHOICE             606
  82. #define ID_ENTERNAME          607
  83. #define ID_TELNUMBER          608
  84. #define ID_DO                 609
  85. #define ID_SAVEFILE           610
  86. #define ID_EXIT               611
  87. #define ID_USES               612
  88. #define ID_ERROR              613
  89. #define ID_HELP               614
  90. #define ID_ERRINADD           615
  91. #define ID_ERRINMODIFY        616
  92. #define ID_ERRINSEARCH        617
  93. #define ID_ERRINREMOVE        618
  94. #define ID_INFORMATION        619
  95. #define ID_CANNOTLOADSTRING   620
  96. #define ID_HELPLOADERROR      621
  97. #define ID_HELPDISPLAYERROR   622
  98. #define ID_HELPLIBRARYNAME    623
  99. #define ID_HELPWINDOWTITLE    624
  100.  
  101. //Start_Help
  102. #define HELPLIBRARYNAMELEN  20
  103.  
  104. /*--------------------------------------------------------------*\
  105.  *  Help table and subtables                                    *
  106. \*--------------------------------------------------------------*/
  107. #define TELDIR_HELP_TABLE                   1000
  108.  
  109. /*--------------------------------------------------------------*\
  110.  *  Main window help panels                                     *
  111. \*--------------------------------------------------------------*/
  112. #define SUBTABLE_MAIN                       3000
  113. #define PANEL_IDM_ABOUT                     IDM_ABOUT
  114. #define PANEL_IDM_FILE                      IDM_FILE
  115. #define PANEL_IDM_VIEW                      IDM_VIEW
  116. #define PANEL_IDM_HELP                      IDM_HELP
  117. //End_Help
  118.  
  119.  
  120. /* Function Pre declarations  */
  121.  
  122. int  main(VOID);
  123. MRESULT EXPENTRY WinProc1(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
  124. VOID MessageBox(USHORT sMsg, USHORT sTitle);
  125. VOID Button_Handling(VOID);
  126. VOID SaveData(VOID);
  127. VOID LoadFile(VOID);
  128. VOID ChangeLayer(VOID);
  129. VOID Heb_Interface(VOID);
  130. VOID Eng_Interface(VOID);
  131. PCHAR Message(USHORT);
  132. VOID ConvertBidiString (PUCHAR, PUCHAR, ULONG, ULONG, ULONG);
  133. VOID DisplayTitle(USHORT);
  134. //Start_Help
  135. VOID InitHelp(VOID);
  136. VOID DisplayHelpPanel(LONG);
  137. VOID DestroyHelpInstance(VOID);
  138. //End_Help
  139.  
  140. /* type definitions */
  141.  
  142. typedef struct     {
  143.      char Name[100];
  144.      char Number[10];
  145.    } TELLIST;
  146.  
  147. typedef TELLIST *PTELLIST;
  148.