home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WINPROPM.ZIP / EXAMGBL.H < prev    next >
Text File  |  1989-06-19  |  5KB  |  159 lines

  1. /* file : Examgbl.h
  2.  
  3.  
  4.         Created: 21:55:38 Mon Jun 19 1989
  5.  
  6.         Description:  Definitions of global external data identifiers
  7.                       used in ExamplPM.rc
  8.  
  9.         Skeleton by:  WINPRO/PM a product from Louis J. Cutrona, Jr.
  10.                       Skeleton.pm (Revision 2.5)  
  11.  
  12. */
  13.  
  14. /* To actually define the variables, the preprocessor symbol EXTGEN   */
  15. /* is defined.  This is only done in one routine: Examext.c.  Do not  */
  16. /* define it in any other routine.  Other routines should #include    */
  17. /* this header file but should not define EXTGEN                      */ 
  18.  
  19. #ifdef EXTGEN
  20. #define EXT     /* */
  21. #else
  22. #define EXT     extern
  23. #endif
  24.  
  25. /* Note that when EXTGEN is defined, the preprocessor symbol EXT      */
  26. /* becomes null and the variable it precedes is actually defined.     */
  27. /* When EXTGEN is not defined, the preprocessor symbol EXT becomes    */
  28. /* the "extern" keyword and the variable it precedes is declared, but */
  29. /* not defined.  Thus, external symbols need only be described once   */
  30. /* in this file and you don't have to worry about maintaining two     */
  31. /* separate files (one with definitions and one with declarations)    */
  32. /* for your globals.                                                  */
  33.  
  34. /* Define array of pointers to resource strings read in by InitStrings */
  35. EXT NPSZ     gbl_pszStrings[ CSTRINGS ];
  36.  
  37. /* Define macro to enable reference to gbl_pszStrings via string id */
  38. #define gbl_psz(n) gbl_pszStrings[ n - IDS_FIRSTSTRING ]
  39.  
  40. /* Within the application, to reference a string from the resource    */
  41. /* file, use the above-defined macro.  If the symbol referring to the */
  42. /* string is MYSTRING, the expression "gbl_psz( MYSTRING )" will give */
  43. /* you a pointer to the string you want.                              */
  44.  
  45. EXT HAB      gbl_hab;             /* Anchor block handle */
  46. EXT HMQ      gbl_hmqExamplPM;      /* Message queue handle */
  47. EXT HHEAP    gbl_hheap;           /* handle to local heap */
  48. EXT HWND     gbl_hwndApp;         /* Application's main window */
  49. EXT HWND     gbl_hwndAppFrame;    /* Window frame handle */
  50. EXT HWND     gbl_hwndMenu;        /* Window's action bar window handle */
  51. EXT HSWITCH  gbl_hswitch;         /* Handle to Task Manager switch list entry */
  52. EXT QMSG     gbl_qmsg;            /* Current message in the queue */   
  53. EXT HPOINTER gbl_curArrow;        /* Arrow cursor */
  54. EXT HPOINTER gbl_curWait;         /* Hourglass cursor */
  55. EXT HPOINTER gbl_hptrStd;         /* Default icon */
  56. EXT HACCEL   gbl_hAccelTable;     /* Application's accelerator table */
  57. EXT HWND     gbl_hDlg;            /* Currently active dialog window */
  58.  
  59.  
  60. /* The following global variables are used to record    */
  61. /* the state of all of the controls in the dialog boxes */
  62. /* defined in the .RC file.  When the dialogs are       */
  63. /* activated, these values initialize the controls.     */
  64.  
  65.  
  66. /* Entry text */
  67. EXT   CHAR    gbl_szIDD_PATH[ 40 ]
  68. #if defined( EXTGEN )
  69. = ""
  70. #endif
  71. ;
  72.  
  73. /* Entry text */
  74. EXT   CHAR    gbl_szIDD_FILEEDIT[ 40 ]
  75. #if defined( EXTGEN )
  76. = "*.img"
  77. #endif
  78. ;
  79.  
  80. /* Entry text */
  81. EXT   CHAR    gbl_szGP_SIFNAME[ 40 ]
  82. #if defined( EXTGEN )
  83. = "TEMP.SIF"
  84. #endif
  85. ;
  86.  
  87. /* Entry text */
  88. EXT   CHAR    gbl_szGP_LOFFSET[ 40 ]
  89. #if defined( EXTGEN )
  90. = "0.00"
  91. #endif
  92. ;
  93.  
  94. /* Entry text */
  95. EXT   CHAR    gbl_szGP_TOFFSET[ 40 ]
  96. #if defined( EXTGEN )
  97. = "0.00"
  98. #endif
  99. ;
  100.  
  101. /* Entry text */
  102. EXT   CHAR    gbl_szGP_WIDTH[ 40 ]
  103. #if defined( EXTGEN )
  104. = "0.00"
  105. #endif
  106. ;
  107.  
  108. /* Entry text */
  109. EXT   CHAR    gbl_szGP_HEIGHT[ 40 ]
  110. #if defined( EXTGEN )
  111. = "0.00"
  112. #endif
  113. ;
  114.  
  115. /* Entry text */
  116. EXT   CHAR    gbl_szGP_HSCALE[ 40 ]
  117. #if defined( EXTGEN )
  118. = "1.00"
  119. #endif
  120. ;
  121.  
  122. /* Entry text */
  123. EXT   CHAR    gbl_szGP_VSCALE[ 40 ]
  124. #if defined( EXTGEN )
  125. = "1.00"
  126. #endif
  127. ;
  128.  
  129. /* Id of currently selected radio button */
  130. EXT   SHORT   gbl_sGP_FORSCREEN_to_GP_PRINT
  131. #if defined( EXTGEN )
  132. = GP_FORSCREEN  /* Initially, first radio button is selected */
  133. #endif
  134. ;
  135.  
  136. /* State of checkbox */
  137. EXT   SHORT   gbl_sGP_FAVORWHITE
  138. #if defined( EXTGEN )
  139. = 0  /* initially off (not checked) */
  140. #endif
  141. ;
  142.  
  143. /* State of 3-state checkbox */
  144. EXT   SHORT   gbl_sGP_FAVORBLACK
  145. #if defined( EXTGEN )
  146. = 0  /* initially off (not checked) */
  147. #endif
  148. ;
  149.  
  150.  
  151. /* For ease of updating, put additional definitions and declarations */
  152. /* after this point.  That way, if you run Winpro/PM again, you can  */
  153. /* just copy everything after this point into the new Examgbl.h      */
  154.  
  155.  
  156.  
  157.  
  158. /*   E N D   O F   E X A M G B L . H   */
  159.