home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / startapp.zip / XTRN.H < prev   
Text File  |  1998-09-10  |  3KB  |  92 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.  *  (c) Copyright IBM Corp. 1991, 1998  All rights reserved.
  15.  *
  16.  *  These sample programs are owned by International Business Machines
  17.  *  Corporation or one of its subsidiaries ("IBM") and are copyrighted and
  18.  *  licensed, not sold.
  19.  *
  20.  *  You may copy, modify, and distribute these sample programs in any
  21.  *  form without payment to IBM, for any purpose including developing,
  22.  *  using, marketing or distributing programs that include or are
  23.  *  derivative works of the sample programs.
  24.  *
  25.  *  The sample programs are provided to you on an "AS IS" basis, without
  26.  *  warranty of any kind.  IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES,
  27.  *  EITHER EXPRESS OR IMPLIED, INCLUDING , BUT NOT LIMITED TO, THE IMPLIED
  28.  *  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  29.  *  Some jurisdictions do not allow for the exclusion or limitation of
  30.  *  implied warranties, so the above limitations or exclusions may not
  31.  *  apply to you.  IBM shall not be liable for any damages you suffer
  32.  *  as a result of using, modifying or distributing the sample programs
  33.  *  or their derivatives.
  34.  *************************************************************************/
  35.  
  36. /*
  37.  *  Global variables
  38.  */
  39. extern HWND hwndMainFrame;
  40. extern HWND hwndMain;
  41. extern HWND hwndList;
  42. extern HAB hab;
  43. extern HMQ hmq;
  44. extern HDC hdcMain;
  45. extern CHAR szAppName[];
  46. extern CHAR szUntitled[];
  47. extern BOOL fPrintEnabled;
  48. extern BOOL fHelpEnabled;
  49. extern BOOL fStarted;
  50.  
  51. /*
  52.  *  Entry point declarations
  53.  */
  54.  
  55. /* from main.c */
  56. int              main(VOID);
  57. MRESULT EXPENTRY MainWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  58. ULONG            MessageBox(HWND hwndOwner, ULONG idMsg, ULONG fsStyle, BOOL fBeep);
  59. VOID             MainCommand(MPARAM mp1, MPARAM mp2);
  60.  
  61. /* from init.c */
  62. BOOL             Init(VOID);
  63. MRESULT          InitMainWindow(HWND hwnd, MPARAM mp1, MPARAM mp2);
  64. VOID             ExitProc(USHORT usTermCode);
  65.  
  66.  
  67. /* from sapp.c */
  68. VOID             StrApp(MPARAM mp2);
  69. VOID             StopApp(MPARAM mp2);
  70.  
  71. /* from user.c */
  72. VOID             UserCommand(MPARAM mp1, MPARAM mp2);
  73. MRESULT          UserWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  74. VOID             InitMenu(MPARAM mp1, MPARAM mp2);
  75. VOID             EnableMenuItem(HWND hwndMenu, USHORT idItem, BOOL fEnable);
  76.  
  77. /* from pnt.c */
  78. VOID             MainPaint(HWND hwnd);
  79.  
  80. /* from help.c */
  81. VOID             InitHelp(VOID);
  82. VOID             HelpIndex(VOID);
  83. VOID             HelpGeneral(VOID);
  84. VOID             HelpUsingHelp(VOID);
  85. VOID             HelpKeys(VOID);
  86. VOID             HelpTutorial(VOID);
  87. VOID             HelpProductInfo(VOID);
  88. VOID             DisplayHelpPanel(ULONG idPanel);
  89. VOID             DestroyHelpInstance(VOID);
  90.  
  91. /***************************  End of xtrn.h  ****************************/
  92.