home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / prnt1.zip / AppDefs.C next >
C/C++ Source or Header  |  1995-02-10  |  3KB  |  78 lines

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