home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / prnt3.zip / AppDefs.C next >
C/C++ Source or Header  |  1995-05-12  |  4KB  |  94 lines

  1. #pragma    title("Printer Driver  --  Version 3  --  (AppDefs.C)")
  2. #pragma    subtitle("   Application Definitions - Interface Definitions")
  3.  
  4. #pragma    info(noext)
  5.  
  6. #define    INCL_GPI           /* Include OS/2 PM GPI Interface    */
  7. #define    INCL_WIN           /* Include OS/2 PM Windows Interface    */
  8.  
  9. #include <os2.h>
  10.  
  11. #include "appdefs.h"
  12. #include "prnsetup.h"
  13.  
  14. /* This    module contains    global variable    definitions for    the printer    */
  15. /* driver sample code.                            */
  16.  
  17. /* Filename:   AppDefs.C                        */
  18.  
  19. /*  Version:   2                            */
  20. /*  Created:   1991-02-28                        */
  21. /*  Revised:   1994-03-12                        */
  22.  
  23. /* Routines:   None                            */
  24.  
  25. /************************************************************************/
  26. /************************************************************************/
  27. /************************************************************************/
  28. /* DISCLAIMER OF WARRANTIES:                        */
  29. /* -------------------------                        */
  30. /* The following [enclosed] code is sample code    created    by IBM        */
  31. /* Corporation and Prominare Inc.  This    sample code is not part    of any    */
  32. /* standard IBM    product    and is provided    to you solely for the purpose    */
  33. /* of assisting    you in the development of your applications.  The code    */
  34. /* is provided "AS IS",    without    warranty of any    kind.  Neither IBM nor    */
  35. /* Prominare shall be liable for any damages arising out of your    */
  36. /* use of the sample code, even    if they    have been advised of the    */
  37. /* possibility of such damages.                        */
  38. /************************************************************************/
  39. /************************************************************************/
  40. /************************************************************************/
  41. /*               D I S C L A I M E R                */
  42. /* This    code is    provided on an as is basis with    no implied support.    */
  43. /* It should be    considered freeware that cannot    be rebundled as        */
  44. /* part    of a larger "*ware" offering without our consent.        */
  45. /************************************************************************/
  46. /************************************************************************/
  47. /************************************************************************/
  48.  
  49. /* Copyright ╕ International Business Machines Corp., 1995.        */
  50. /* Copyright ╕ 1995  Prominare Inc.  All Rights    Reserved.        */
  51.  
  52. /* --------------------------------------------------------------------    */
  53.  
  54. FONTMETRICS fm;               /* Font Metrics Info            */
  55. HAB        hAB;           /* Program Anchor Block Handle    */
  56. HSWITCH        hSwitch;           /* Task List    Entry Handle        */
  57.  
  58. HPOINTER    hptrWait;           /* Wait Mouse Pointer Handle        */
  59. HPOINTER    hptrArrow;           /* Arrow Mouse Pointer Handle    */
  60.  
  61. HMQ  hmqPrnSetup;           /* Program Message Queue Handle    */
  62. HWND hwndPrnSetup;           /* Client Window Handle        */
  63. HWND hwndPrnSetupFrame;           /* Frame Window Handle        */
  64. HWND hmenuPrnSetup;           /* Menu Handle            */
  65.  
  66. HPS hpsPrint;               /* Print Window Presentation    Handle    */
  67.  
  68. HWND hwndToolBar;           /* Client Window Handle        */
  69. HWND hwndToolBarFrame;           /* Frame Window Handle        */
  70.  
  71. HWND hwndHelp;               /* Help Window Handle        */
  72. HELPINIT helpinit = {
  73.    sizeof(HELPINIT),           /* Count of Bytes in    Structure    */
  74.    0L,                   /* Return Value from    Help Manager    */
  75.    NULL,               /* Pointer to Tutorial Name        */
  76.    (PHELPTABLE)
  77.    MAKELONG(HID_APP, 0xffff),       /* Resource ID for Help Table    */
  78.    0,                   /* Handle for Help Table        */
  79.    0,                   /* Handle for Replacement Menu    */
  80.    0,                   /* Replacement Accelerator ID    */
  81.    0,                   /* Replacement Menu ID        */
  82.    "Print Driver Help",           /* Help-Window Title            */
  83.    CMIC_HIDE_PANEL_ID,           /* Display Help Title Only        */
  84.    "Print.Hlp" };           /* Path to Help Library        */
  85.  
  86. PRN    prn;               /* Printer Control Holder        */
  87.  
  88. FONTSEL         fsel;           /* Font Selection            */
  89.  
  90. PAGESETUP pags = { 1.25, 1.25, 1.5, 1.5, "", ""    };
  91.  
  92. FONTCACHE    fcache;           /* Font Cache            */
  93. FONTCACHE    fcacheScale;       /* Scale Font Cache            */
  94.