home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / fsrc1241.zip / printsetup.h < prev    next >
C/C++ Source or Header  |  1996-04-26  |  2KB  |  51 lines

  1. /* PRINTSETUP.H */
  2.  
  3. MRESULT EXPENTRY PrintSetupProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  4.  
  5. #pragma pack(4)
  6.  
  7. typedef struct
  8. {
  9.   USHORT cb;
  10.   BOOL   bDirty;
  11.   WINPOS DlgPos;
  12.   ULONG  ulOutput;   /* OUTPUT_* */
  13.   LONG   lLeft;
  14.   LONG   lRight;
  15.   LONG   lTop;
  16.   LONG   lBottom;
  17.   char   pchHeaderFont[FACESIZE+5];
  18.   char   pchTextFont[FACESIZE+5];
  19.  
  20.   /* INPUT PARAMETERS: assign these before calling SetupPrinter() */
  21.   LONG           lWorldCoordinates; /* PU_TWIPS or whatever */
  22.   HAB            hab;               /* application's anchor block */
  23.  
  24.   /* PROFILED PARAMETERS: store these two items on app close.
  25.      Retrieve them on app open.
  26.      Note pDriverData->cb is length of DRIVDATA structure. */
  27.   CHAR           szPreferredQueue[ 64 ];  /* name of user's preferred queue */
  28.   PDRIVDATA      pDriverData;             /* driver's data */
  29.  
  30.   /* OUTPUT PARAMETERS: for use by SetupPrinter() and the application */
  31.   HDC            hdcPrinterInfo;    /* printer info DC */
  32.   HPS            hpsPrinterInfo;    /* printer info PS */
  33.   LONG           lDCType;           /* DC type suitable for DevOpenDC() param 2*/
  34.   PDEVOPENDATA   pDevOpenData;      /* suitable for DevOpenDC() parameter 5 */
  35.   DEVOPENSTRUC   devopenstruc;      /* pdevopendata points to this.         */
  36.   LONG           cQueues;           /* count of queues in PRQINFO3 array    */
  37.   PPRQINFO3      pQueueInfo;        /* pointer to array of PRQINFO3         */
  38. } PRINTSETUP, *PPRINTSETUP;
  39.  
  40. #pragma pack()
  41.  
  42. #define OUTPUT_AREA     0x01UL
  43. #define OUTPUT_DATE     0x02UL
  44. #define OUTPUT_ATTRIB   0x04UL
  45. #define OUTPUT_PAGENUM  0x08UL
  46.  
  47. ULONG InitPrintSetup(PPRINTSETUP pPrintSetup, HAB hab);
  48. ULONG TermPrintSetup(PPRINTSETUP pPrintSetup);
  49.  
  50. /* Ende PRINTSETUP.H */
  51.