home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / INCLUDE / COMMDLG.CH < prev    next >
Text File  |  1993-05-27  |  7KB  |  188 lines

  1. ////////////////////////////
  2. //
  3. //    Clip-4-Win Common Dialog definitions
  4. //
  5. //    Copyright (C) 1992 Skelton Software, Kendal Cottage, Hillam, Leeds, UK.
  6. //    All Rights Reserved.
  7. //
  8. ////////////////////////////
  9.  
  10. #ifndef    C4W_COMMDLG_CH
  11. #define    C4W_COMMDLG_CH
  12.  
  13.  
  14. // GetOpenFileName() and GetSaveFileName()
  15. #define OFN_READONLY            1    // 0x00000001
  16. #define OFN_OVERWRITEPROMPT        2    // 0x00000002
  17. #define OFN_HIDEREADONLY        4    // 0x00000004
  18. #define OFN_NOCHANGEDIR            8    // 0x00000008
  19. #define OFN_SHOWHELP            16    // 0x00000010
  20. //#define OFN_ENABLEHOOK        32    // 0x00000020
  21. //#define OFN_ENABLETEMPLATE        64    // 0x00000040
  22. //#define OFN_ENABLETEMPLATEHANDLE    128    // 0x00000080
  23. #define OFN_NOVALIDATE            256    // 0x00000100
  24. #define OFN_ALLOWMULTISELECT        512    // 0x00000200
  25. #define OFN_EXTENSIONDIFFERENT        1024    // 0x00000400
  26. #define OFN_PATHMUSTEXIST        2048    // 0x00000800
  27. #define OFN_FILEMUSTEXIST        4096    // 0x00001000
  28. #define OFN_CREATEPROMPT        8192    // 0x00002000
  29. #define OFN_SHAREAWARE            16384    // 0x00004000
  30. #define OFN_NOREADONLYRETURN        32768    // 0x00008000
  31. #define OFN_NOTESTFILECREATE        65536    // 0x00010000
  32.  
  33.  
  34. // ChooseFont() nFlags values:
  35. #define CC_RGBINIT            1    // 0x00000001
  36. #define CC_FULLOPEN            2    // 0x00000002
  37. #define CC_PREVENTFULLOPEN        4    // 0x00000004
  38. #define CC_SHOWHELP            8    // 0x00000008
  39. //#define CC_ENABLEHOOK            16    // 0x00000010
  40. //#define CC_ENABLETEMPLATE        32    // 0x00000020
  41. //#define CC_ENABLETEMPLATEHANDLE    64    // 0x00000040
  42.  
  43.  
  44. // FindReplace() values:
  45. #define FR_DOWN                1    // 0x00000001
  46. #define FR_WHOLEWORD            2    // 0x00000002
  47. #define FR_MATCHCASE            4    // 0x00000004
  48. #define FR_FINDNEXT            8    // 0x00000008
  49. #define FR_REPLACE            16    // 0x00000010
  50. #define FR_REPLACEALL            32    // 0x00000020
  51. #define FR_DIALOGTERM            64    // 0x00000040
  52. #define FR_SHOWHELP            128    // 0x00000080
  53. //#define FR_ENABLEHOOK            256    // 0x00000100
  54. #define FR_ENABLETEMPLATE        512    // 0x00000200
  55. #define FR_NOUPDOWN            1024    // 0x00000400
  56. #define FR_NOMATCHCASE            2048    // 0x00000800
  57. #define FR_NOWHOLEWORD            4096    // 0x00001000
  58. //#define FR_ENABLETEMPLATEHANDLE     8192    // 0x00002000
  59. #define FR_HIDEUPDOWN            16384    // 0x00004000
  60. #define FR_HIDEMATCHCASE        32768    // 0x00008000
  61. #define FR_HIDEWHOLEWORD        65536    // 0x00010000
  62.  
  63.  
  64. // ChooseFont() values:
  65. #define CF_SCREENFONTS            1    // 0x00000001
  66. #define CF_PRINTERFONTS            2    // 0x00000002
  67. #define CF_BOTH                (CF_SCREENFONTS + CF_PRINTERFONTS)
  68. #define CF_SHOWHELP            4    // 0x00000004L
  69. //#define CF_ENABLEHOOK            8    // 0x00000008L
  70. //#define CF_ENABLETEMPLATE        16    // 0x00000010L
  71. //#define CF_ENABLETEMPLATEHANDLE    32    // 0x00000020L
  72. #define CF_INITTOLOGFONTSTRUCT        64    // 0x00000040L
  73. #define CF_USESTYLE            128    // 0x00000080L
  74. #define CF_EFFECTS            256    // 0x00000100L
  75. #define CF_APPLY            512    // 0x00000200L
  76. #define CF_ANSIONLY            1024    // 0x00000400L
  77. #define CF_NOVECTORFONTS        2048    // 0x00000800L
  78. #define CF_NOOEMFONTS            CF_NOVECTORFONTS
  79. #define CF_NOSIMULATIONS        4096    // 0x00001000L
  80. #define CF_LIMITSIZE            8192    // 0x00002000L
  81. #define CF_FIXEDPITCHONLY        16384    // 0x00004000L
  82. #define CF_WYSIWYG            32768    // 0x00008000L /* must also have CF_SCREENFONTS + CF_PRINTERFONTS */
  83. #define CF_FORCEFONTEXIST        65536    // 0x00010000L
  84. #define CF_SCALABLEONLY            131072    // 0x00020000L
  85. #define CF_TTONLY            262144    // 0x00040000L
  86. #define CF_NOFACESEL            524288    // 0x00080000L
  87. #define CF_NOSTYLESEL            1048576    // 0x00100000L
  88. #define CF_NOSIZESEL            2097152    // 0x00200000L
  89.  
  90. // These are extra nFontType bits:
  91. #define SIMULATED_FONTTYPE    32768    // 0x8000
  92. #define PRINTER_FONTTYPE    16384    // 0x4000
  93. #define SCREEN_FONTTYPE        8192    // 0x2000
  94. #define BOLD_FONTTYPE        256    // 0x0100
  95. #define ITALIC_FONTTYPE        512    // 0x0200
  96. #define REGULAR_FONTTYPE    1024    // 0x0400
  97.  
  98.  
  99.  
  100. // Array elements of aPrintDlg[], which is used with PrintDlg():
  101. //
  102. // (these correspond to the members of the Windows PRINTDLG structure)
  103. //
  104. // NOTE: Various members are not yet supported, and are either marked
  105. //     TBD or commented out.
  106.  
  107. #ifndef COMMDLG_UPPERCASE        // define this if you prefer upper case
  108.  
  109. #define    PD_nStructSize        1    // TBD
  110. #define    PD_hwndOwner        2
  111. #define    PD_aDevMode        3    // TBD
  112. #define    PD_aDevNames        4    // TBD
  113. #define    PD_hDC            5
  114. #define    PD_nFlags        6
  115. #define    PD_nFromPage        7
  116. #define    PD_nToPage        8
  117. #define    PD_nMinPage        9
  118. #define    PD_nMaxPage        10
  119. #define    PD_nCopies        11
  120. //#define    PD_hInstance        12
  121. //#define    PD_lCustData        13
  122. //#define    PD_lpfnPrintHook    14
  123. //#define    PD_lpfnSetupHook    15
  124. //#define    PD_lpPrintTemplateName    16
  125. //#define    PD_lpSetupTemplateName    17
  126. //#define    PD_hPrintTemplate    18
  127. //#define    PD_hSetupTemplate    19
  128.  
  129. #define    PD_Length        19    // # elements
  130.  
  131. #else // COMMDLG_UPPERCASE
  132.  
  133. #define PD_NSTRUCTSIZE          1       // TBD
  134. #define PD_HWNDOWNER            2
  135. #define PD_ADEVMODE             3       // TBD
  136. #define PD_ADEVNAMES            4       // TBD
  137. #define PD_HDC                  5
  138. #define PD_NFLAGS               6
  139. #define PD_NFROMPAGE            7
  140. #define PD_NTOPAGE              8
  141. #define PD_NMINPAGE             9
  142. #define PD_NMAXPAGE             10
  143. #define PD_NCOPIES              11
  144. //#define       PD_HINSTANCE            12
  145. //#define       PD_LCUSTDATA            13
  146. //#define       PD_LPFNPRINTHOOK        14
  147. //#define       PD_LPFNSETUPHOOK        15
  148. //#define       PD_LPPRINTTEMPLATENAME  16
  149. //#define       PD_LPSETUPTEMPLATENAME  17
  150. //#define       PD_HPRINTTEMPLATE       18
  151. //#define       PD_HSETUPTEMPLATE       19
  152.  
  153. #define PD_LENGTH               19      // # elements
  154.  
  155. #endif // COMMDLG_UPPERCASE
  156.  
  157.  
  158.  
  159. // PrintDlg() PD_nFlags values:
  160. #define PD_ALLPAGES            0    // 0x00000000
  161. #define PD_SELECTION            1    // 0x00000001
  162. #define PD_PAGENUMS            2    // 0x00000002
  163. #define PD_NOSELECTION            4    // 0x00000004
  164. #define PD_NOPAGENUMS            8    // 0x00000008
  165. #define PD_COLLATE            16    // 0x00000010
  166. #define PD_PRINTTOFILE            32    // 0x00000020
  167. #define PD_PRINTSETUP            64    // 0x00000040
  168. #define PD_NOWARNING            128    // 0x00000080
  169. #define PD_RETURNDC            256    // 0x00000100
  170. #define PD_RETURNIC            512    // 0x00000200
  171. #define PD_RETURNDEFAULT        1024    // 0x00000400
  172. #define PD_SHOWHELP            2048    // 0x00000800
  173. //#define PD_ENABLEPRINTHOOK        4096    // 0x00001000
  174. //#define PD_ENABLESETUPHOOK        8192    // 0x00002000
  175. //#define PD_ENABLEPRINTTEMPLATE    16384    // 0x00004000
  176. //#define PD_ENABLESETUPTEMPLATE    32768    // 0x00008000
  177. //#define PD_ENABLEPRINTTEMPLATEHANDLE    65536    // 0x00010000
  178. //#define PD_ENABLESETUPTEMPLATEHANDLE    131072    // 0x00020000
  179. #define PD_USEDEVMODECOPIES        262144    // 0x00040000
  180. #define PD_DISABLEPRINTTOFILE        524288    // 0x00080000
  181. #define PD_HIDEPRINTTOFILE        1048576    // 0x00100000
  182.  
  183.  
  184. // DevNames nDefault values:
  185. #define DN_DEFAULTPRN      1    // 0x0001
  186.  
  187. #endif    // C4W_COMMDLG_CH
  188.