home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / template.zip / XTRN.H < prev   
C/C++ Source or Header  |  1998-04-20  |  3KB  |  101 lines

  1. /**************************************************************************
  2.  *  File name  :  xtrn.h
  3.  *
  4.  *  Description:  This header file contains the application-wide function
  5.  *                declarations and global external variables.
  6.  *
  7.  *  Concepts   :  global definition
  8.  *
  9.  *  API's      :  [none]
  10.  *
  11.  *  Required
  12.  *    Files    :  [none]
  13.  *
  14.  *  Copyright (C) 1991 IBM Corporation
  15.  *
  16.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  17.  *      sample code created by IBM Corporation. This sample code is not
  18.  *      part of any standard or IBM product and is provided to you solely
  19.  *      for  the purpose of assisting you in the development of your
  20.  *      applications.  The code is provided "AS IS", without
  21.  *      warranty of any kind.  IBM shall not be liable for any damages
  22.  *      arising out of your use of the sample code, even if they have been
  23.  *      advised of the possibility of such damages.                                                    *
  24.  *************************************************************************/
  25.  
  26. /*
  27.  *  Global variables
  28.  */
  29. extern HWND hwndMainFrame;
  30. extern HWND hwndMain;
  31. extern HAB hab;
  32. extern HMQ hmq;
  33. extern HDC hdcMain;
  34. extern CHAR szAppName[];
  35. extern CHAR szUntitled[];
  36. extern BOOL fPrintEnabled;
  37. extern BOOL fHelpEnabled;
  38.  
  39. /*
  40.  *  Entry point declarations
  41.  */
  42.  
  43. /* from main.c */
  44. int main(VOID);
  45. MRESULT EXPENTRY MainWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  46. ULONG MessageBox(HWND hwndOwner, ULONG idMsg, ULONG fsStyle, BOOL fBeep);
  47. VOID MainCommand(MPARAM mp1, MPARAM mp2);
  48.  
  49. /* from init.c */
  50. BOOL Init(VOID);
  51. MRESULT InitMainWindow(HWND hwnd, MPARAM mp1, MPARAM mp2);
  52. VOID ExitProc(USHORT usTermCode);
  53.  
  54. /* from file.c */
  55. VOID FileNew(MPARAM mp2);
  56. VOID FileOpen(MPARAM mp2);
  57. VOID FileSave(MPARAM mp2);
  58. VOID FileSaveAs(MPARAM mp2);
  59. VOID WriteFileToDisk(HFILE hf);
  60. BOOL GetFileName(VOID);
  61. VOID UpdateTitleText(HWND hwnd);
  62. MRESULT EXPENTRY FAR TemplateOpenFilterProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  63. MRESULT EXPENTRY FAR TemplateSaveFilterProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  64.  
  65. /* from edit.c */
  66. VOID EditUndo(MPARAM mp2);
  67. VOID EditCut(MPARAM mp2);
  68. VOID EditCopy(MPARAM mp2);
  69. VOID EditPaste(MPARAM mp2);
  70. VOID EditClear(MPARAM mp2);
  71.  
  72. /* from user.c */
  73. VOID UserCommand(MPARAM mp1, MPARAM mp2);
  74. MRESULT UserWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  75. VOID InitMenu(MPARAM mp1, MPARAM mp2);
  76. VOID EnableMenuItem(HWND hwndMenu, USHORT idItem, BOOL fEnable);
  77.  
  78. /* from prnt.c */
  79. VOID InitPrintingDialogs(VOID);
  80.  
  81. /* from pnt.c */
  82. VOID MainPaint(HWND hwnd);
  83.  
  84. /* from help.c */
  85. VOID InitHelp(VOID);
  86. VOID HelpIndex(VOID);
  87. VOID HelpGeneral(VOID);
  88. VOID HelpUsingHelp(VOID);
  89. VOID HelpKeys(VOID);
  90. VOID HelpTutorial(VOID);
  91. VOID HelpProductInfo(VOID);
  92. VOID DisplayHelpPanel(ULONG idPanel);
  93. VOID DestroyHelpInstance(VOID);
  94.  
  95. /* from thrd.c */
  96. BOOL CreateBackgroundThread(VOID);
  97. VOID DestroyBackgroundThread(VOID);
  98. BOOL PostBkThreadMsg(ULONG msg, MPARAM mp1, MPARAM mp2);
  99. MRESULT SendBkThreadMsg(ULONG msg, MPARAM mp1, MPARAM mp2);
  100. /***************************  End of xtrn.h  ****************************/
  101.