home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / INCLUDE / PRINT.CH < prev    next >
Text File  |  1994-09-23  |  3KB  |  115 lines

  1. ////////////////////////////
  2. //
  3. //    Clip-4-Win DEVMODE definitions
  4. //
  5. //    Copyright (C) 1994 Skelton Software, Kendal Cottage, Hillam, Leeds, UK.
  6. //    All Rights Reserved.
  7. //
  8. //    For use with, e.g. CreateDC().
  9. //
  10. ////////////////////////////
  11.  
  12. #ifndef    C4W_PRINT_CH
  13. #define    C4W_PRINT_CH
  14.  
  15.  
  16. // Array elements of aDevMode[], which can be passed to CreateDC(),
  17. // DeviceCapabilities() or ExtDeviceMode() to control printers
  18. // (actually, a2bin(aDevMode, DM_IN_DEF) is passed)
  19. //
  20. // (these correspond to the members of the Windows DEVMODE structure)
  21.  
  22. #define    DM_DeviceName        1    // 32-char name (null-padded on input)
  23. #define    DM_SpecVersion        2    // 
  24. #define    DM_DriverVersion    3    // 
  25. #define    DM_Size            4    // 
  26. #define    DM_DriverExtra        5    // 
  27. #define    DM_Fields        6    // 
  28. #define    DM_Orientation        7    // 
  29. #define    DM_PaperSize        8    // 
  30. #define    DM_PaperLength        9    // 
  31. #define    DM_PaperWidth        10    // 
  32. #define    DM_Scale        11    // 
  33. #define    DM_Copies        12    // 
  34. #define    DM_DefaultSource    13    // 
  35. #define    DM_PrintQuality        14    // 
  36. #define    DM_Color        15    // 
  37. #define    DM_Duplex        16    // 
  38. #define    DM_YResolution        17    // 
  39. #define    DM_TTOption        18    // 
  40. // The rest of the structure is device-dependent
  41. #define    DM_DeviceDependent    19    // treated as a Clipper string
  42.  
  43. #define    DM_LENGTH    19    // length of array
  44.  
  45. #define    CCHDEVICENAME    32
  46.  
  47. // These do not include the DM_DeviceDependent info
  48. #define    DM_IN_DEF    "str,uint[4],long,int[12],str"    // for a2bin()
  49. #define    DM_OUT_DEF    "str[32],uint[4],long,int[12]"    // for bin2a()
  50.  
  51.  
  52. // Fields
  53. #define    DM_ORIENTATION        1
  54. #define    DM_PAPERSIZE        2
  55. #define    DM_PAPERLENGTH        4
  56. #define    DM_PAPERWIDTH        8
  57. #define    DM_SCALE        16
  58. #define    DM_COPIES        256
  59. #define    DM_DEFAULTSOURCE    512
  60. #define    DM_PRINTQUALITY        1024
  61. #define    DM_COLOR        2048
  62. #define    DM_DUPLEX        4096
  63. #define    DM_YRESOLUTION        8192
  64. #define    DM_TTOPTION        16384
  65.  
  66. // Orientation options
  67. #define    DMORIENT_PORTRAIT    1
  68. #define    DMORIENT_LANDSCAPE    2
  69.  
  70. // Paper options
  71. #define    DMPAPER_LETTER        1
  72. #define    DMPAPER_A3        8
  73. #define    DMPAPER_A4        9
  74. #define    DMPAPER_A4SMALL        10
  75. #define    DMPAPER_A5        11
  76. #define    DMPAPER_ENV_C5        28
  77. #define    DMPAPER_ENV_C3        29
  78. #define    DMPAPER_ENV_C4        30
  79. #define    DMPAPER_ENV_C6        31
  80. #define    DMPAPER_ENV_C65        32
  81. #define    DMPAPER_ENV_B4        33
  82. #define    DMPAPER_ENV_B5        34
  83. #define    DMPAPER_ENV_B6        35
  84.  
  85. // Print resolution options
  86. #define    DMRES_DRAFT    (-1)
  87. #define    DMRES_LOW    (-2)
  88. #define    DMRES_MEDIUM    (-3)
  89. #define    DMRES_HIGH    (-4)
  90.  
  91. // TrueType options
  92. #define    DMTT_BITMAP    1    // print TT fonts as graphics
  93. #define    DMTT_DOWNLOAD    2    // download TT fonts as soft fonts
  94. #define    DMTT_SUBDEV    3    // substitute device fonts for TT fonts
  95.  
  96. // Mode options
  97. #define    DM_UPDATE    1
  98. #define    DM_COPY        2
  99. #define    DM_PROMPT    4
  100. #define    DM_MODIFY    8
  101.  
  102. #define    DM_IN_BUFFER    DM_MODIFY
  103. #define    DM_IN_PROMPT    DM_PROMPT
  104. #define    DM_OUT_BUFFER    DM_COPY
  105. #define    DM_OUT_DEFAULT    DM_UPDATE
  106.  
  107.  
  108. // Exported ordinals
  109. #define    PROC_EXTDEVICEMODE    (90)
  110. #define    PROC_DEVICECAPABILITIES    (91)
  111. #define    PROC_OLDDEVICEMODE    (13)
  112.  
  113.  
  114. #endif    // C4W_PRINT_CH
  115.