home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / w3_prog / prncdlg.arj / GLOBAL.H next >
Encoding:
C/C++ Source or Header  |  1992-03-03  |  2.1 KB  |  79 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. // Written by Microsoft Product Support Services, Windows Developer Support
  10. // Copyright (c) 1992 Microsoft Corporation. All rights reserved.
  11. //*************************************************************
  12.  
  13. #include <windows.h>
  14. #include <commdlg.h>
  15.  
  16. #define _GLOBALINC
  17.  
  18.  
  19. /* Menu Defines */
  20.     #define IDM_ABOUT      100
  21.     #define IDM_PRINT      101
  22.     #define IDM_PRINTSETUP 102
  23.     #define IDM_FONTS      103
  24.     #define IDM_EXIT       666
  25.  
  26. /* Function Prototypes */
  27. /* Main.c */
  28.     int  PASCAL     WinMain (HANDLE, HANDLE, LPSTR, int);
  29.     long FAR PASCAL MainWndProc (HWND, unsigned, WORD, LONG);
  30.     BOOL FAR PASCAL About (HWND, unsigned, WORD, LONG);
  31.     BOOL            ShowPrintSetup (HWND hWnd);
  32.     void            ShowFontBox (HWND hWnd);
  33.     BOOL            ShowPrintBox (HWND hWnd);
  34.     BOOL            PrintIt(HWND hWnd, LPPRINTDLG lpPD);
  35.     HDC             GetPrinterDC (void);
  36.     int  FAR PASCAL PrintAbortDlg (HWND hWnd, unsigned msg, WORD wParam, LONG lParam);
  37.     BOOL FAR PASCAL PrintAbortProc (HDC hDC, short code);
  38.  
  39.  
  40. /* Init.c */
  41.     BOOL InitApplication(HANDLE);
  42.     BOOL InitInstance (HANDLE, int);
  43.  
  44. /* EXTERNS for Global Variables */
  45.     extern HANDLE       ghInst;
  46.     extern HWND         ghWndMain;
  47.  
  48.     extern char         szMainMenu[];
  49.     extern char         szMainClass[];
  50.  
  51. // global structure for printing attributes
  52. typedef struct 
  53. {
  54.    HANDLE  hCurrDevMode, hCurrDevNames;
  55.    HFONT   hPrinterFont;
  56.    LOGFONT lfCurrFont;
  57.    char    szPrinter [64] ;
  58.    LPSTR   szDevice, szDriver, szOutput ;
  59.    BOOL    bAbort;
  60.    HWND    hDlgAbort;
  61.  
  62. } PRINTINFOSTRUCT;
  63.  
  64. PRINTINFOSTRUCT pis;
  65.  
  66. // global structure for screen attributes
  67. typedef struct 
  68. {
  69.    HFONT    hScreenFont;
  70.    LOGFONT  lfCurrFont;
  71.    COLORREF crTextColor;
  72.  
  73. } SCREENINFOSTRUCT;
  74.  
  75. SCREENINFOSTRUCT sis;
  76.  
  77. /*** EOF: global.h ***/
  78. 
  79.