home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / bidi / arabic / style / sty_xtrn.h < prev    next >
C/C++ Source or Header  |  1999-05-11  |  3KB  |  95 lines

  1. /*************************************************************************
  2. *
  3. *  File Name   : STY_XTRN.H
  4. *
  5. *  Description : This header file contains the application wide function
  6. *                declarations and global external variables.
  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. /*--------------------------------------------------------------*\
  22.  *  Global variables                                            *
  23. \*--------------------------------------------------------------*/
  24. extern HWND hwndMainFrame;
  25. extern HWND hwndMain;
  26. extern HAB hab;
  27. extern HMQ hmq;
  28. extern HDC hdcMain;
  29. extern CHAR szAppName[];
  30. extern CHAR szUntitled[];
  31. extern BOOL fHelpEnabled;
  32. extern HWND hwndMLE;
  33.  
  34. extern CHAR   szCopyText[];
  35. extern CHAR   szPasteText[];
  36.  
  37. /*--------------------------------------------------------------*\
  38.  *  Entry point declarations                                    *
  39. \*--------------------------------------------------------------*/
  40.  
  41. /* from sample.c */
  42. MRESULT EXPENTRY MainWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  43. SHORT MessageBox(HWND hwndOwner, SHORT idMsg, SHORT fsStyle, BOOL fBeep);
  44. VOID MainCommand(MPARAM mp1, MPARAM mp2);
  45.  
  46. /* from init.c */
  47. BOOL Init(VOID);
  48. MRESULT InitMainWindow(HWND hwnd, MPARAM mp1, MPARAM mp2);
  49. VOID APIENTRY ExitProc(USHORT usTermCode);
  50.  
  51. /* from file.c */
  52. VOID FileNew(MPARAM mp2);
  53. VOID FileOpen(MPARAM mp2);
  54. VOID FileSave(MPARAM mp2);
  55. VOID FileSaveAs(MPARAM mp2);
  56. VOID WriteFileToDisk(HFILE hf);
  57. BOOL GetFileName(VOID);
  58. VOID UpdateTitleText(HWND hwnd);
  59. MRESULT APIENTRY OpenSaveFilterDlgProc(HWND hwnd, USHORT msg, MPARAM mp1,
  60.                                     MPARAM mp2);
  61.  
  62. /* from edit.c */
  63. VOID EditCopy(MPARAM mp1, MPARAM mp2);
  64. VOID EditPaste(MPARAM mp1, MPARAM mp2);
  65.  
  66. /* from dlg.c */
  67. VOID ReportTestResult(HWND hwnd, BOOL fResult);
  68.  
  69. VOID UserCommand(MPARAM mp1, MPARAM mp2);
  70. MRESULT UserWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  71. VOID InitMenu(MPARAM mp1, MPARAM mp2);
  72. VOID EnableMenuItem(HWND hwndMenu, SHORT idItem, BOOL fEnable);
  73. //BIDI
  74. VOID BidiTextOutput(VOID);
  75. ULONG Bidi_QueryCp(VOID);
  76.  
  77. /* from pnt.c */
  78. VOID MainPaint(HWND hwnd);
  79.  
  80. /* from help.c */
  81. VOID InitHelp(VOID);
  82. VOID HelpUsingHelp(MPARAM mp2);
  83. VOID HelpGeneral(MPARAM mp2);
  84. VOID HelpKeys(MPARAM mp2);
  85. VOID HelpIndex(MPARAM mp2);
  86. VOID HelpTutorial(MPARAM mp2);
  87. VOID HelpProdInfo(MPARAM mp2);
  88. VOID DisplayHelpPanel(SHORT nPanelId);
  89. VOID DestroyHelpInstance(VOID);
  90.  
  91. /* from user.c */
  92. //BIDI
  93. ULONG TransformText(HWND hwnd);
  94.  
  95.