home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / w3_prog / s13382.arj / GLOBAL.H next >
Encoding:
C/C++ Source or Header  |  1992-03-25  |  2.8 KB  |  105 lines

  1. //*************************************************************
  2. //  File name: global.h
  3. //
  4. //  Description: 
  5. //      Global include file for #defines and prototypes
  6. //
  7. //  History:    Date       Author     Comment
  8. //
  9. //  Copyright (c) 1992 Microsoft Corporation. All rights reserved.
  10. //*************************************************************
  11.  
  12. #include <windows.h>
  13. #include <commdlg.h>
  14.  
  15. #define _GLOBALINC
  16.  
  17.  
  18. /* Menu Defines */
  19.     #define IDM_ABOUT      100
  20.     #define IDM_PRINT      101
  21.     #define IDM_PRINTSETUP 102
  22.     #define IDM_FONTS      103
  23.     #define IDM_EXIT       666
  24.  
  25.     #define IDM_OTM        200
  26.     #define IDM_TM         201
  27.     #define IDM_PANOSE     202
  28.     #define IDM_LF         203
  29.  
  30.  
  31. /* Function Prototypes */
  32. /* ttdump.c */
  33.     int  PASCAL     WinMain (HANDLE, HANDLE, LPSTR, int);
  34.     long FAR PASCAL MainWndProc (HWND, unsigned, WORD, LONG);
  35.     BOOL FAR PASCAL About (HWND, unsigned, WORD, LONG);
  36.     BOOL            ShowPrintSetup (HWND hWnd);
  37.     void            ShowFontBox (HWND hWnd);
  38.     BOOL            ShowPrintBox (HWND hWnd);
  39.     BOOL            PrintIt(HWND hWnd, LPPRINTDLG lpPD);
  40.     HDC             GetPrinterDC (void);
  41.     int  FAR PASCAL PrintAbortDlg (HWND hWnd, unsigned msg, WORD wParam, LONG lParam);
  42.     BOOL FAR PASCAL PrintAbortProc (HDC hDC, short code);
  43.     void            DumpOTMInfo(HWND hWnd, HDC hDC);
  44.     void            DumpTMInfo(HWND hWnd, HDC hDC);
  45.     void            DumpPanoseInfo(HWND hWnd, HDC hDC);
  46.     void            DumpLFInfo(HWND hWnd, HDC hDC);
  47.     BOOL            IsTTAvail(HDC hDC);
  48.     int CALLBACK    EnumFontFamProc1(LOGFONT FAR *lpnlf, TEXTMETRIC FAR *lpntm, int iFontType, LPARAM lParam);
  49.     int CALLBACK    EnumFontFamProc2(LOGFONT FAR *lpnlf, TEXTMETRIC FAR *lpntm, int iFontType, LPARAM lParam);
  50.     BYTE GetStyleMask(LOGFONT FAR *lf);
  51.  
  52.  
  53. // Init.c 
  54.     BOOL InitApplication(HANDLE);
  55.     BOOL InitInstance (HANDLE, int);
  56.  
  57. // global variables
  58.  
  59. extern HANDLE  ghInst;          
  60. extern HWND    ghWndMain;      
  61. extern char    szMainMenu[];   
  62. extern char    szMainClass[];   
  63.  
  64. // check struct menu choice
  65. extern int     iCurrStructChoice;
  66.  
  67. // global structure for printing attributes
  68. typedef struct 
  69. {
  70.    HANDLE  hCurrDevMode, hCurrDevNames;
  71.    HFONT   hPrinterFont;
  72.    LOGFONT lfCurrFont;
  73.    char    szPrinter [64] ;
  74.    LPSTR   szDevice, szDriver, szOutput ;
  75.    BOOL    bAbort;
  76.    HWND    hDlgAbort;
  77.  
  78. } PRINTINFOSTRUCT;
  79.  
  80. PRINTINFOSTRUCT pis;
  81.  
  82. // global structure for screen attributes
  83. typedef struct 
  84. {
  85.    HFONT    hScreenFont;
  86.    LOGFONT  lfCurrFont;
  87.    COLORREF crTextColor;
  88.  
  89. } SCREENINFOSTRUCT;
  90.  
  91. SCREENINFOSTRUCT sis;
  92.  
  93. typedef struct
  94. {
  95.    char       szFontStyles[LF_FACESIZE];
  96. } FONTINFOSTRUCT;
  97.  
  98. FONTINFOSTRUCT fi;
  99.  
  100. CHOOSEFONT cf;
  101.  
  102.  
  103. /*** EOF: global.h ***/
  104.  
  105.