[1] | 1 | ' api_commdlg.sbp
|
---|
| 2 |
|
---|
| 3 | #ifndef _INC_COMMDLG
|
---|
| 4 | #define _INC_COMMDLG
|
---|
| 5 |
|
---|
[141] | 6 | #ifdef UNICODE
|
---|
| 7 | Const _FuncName_ChooseColor = "ChooseColorW"
|
---|
| 8 | Const _FuncName_ChooseFont = "ChooseFontW"
|
---|
| 9 | Const _FuncName_FindText = "FindTextW"
|
---|
| 10 | Const _FuncName_GetOpenFileName = "GetOpenFileNameW"
|
---|
| 11 | Const _FuncName_GetSaveFileName = "GetSaveFileNameW"
|
---|
| 12 | Const _FuncName_GetFileTitle = "GetFileTitleW"
|
---|
| 13 | Const _FuncName_PageSetupDlg = "PageSetupDlgW"
|
---|
| 14 | Const _FuncName_PrintDlg = "PrintDlgW"
|
---|
| 15 | #else
|
---|
| 16 | Const _FuncName_ChooseColor = "ChooseColorA"
|
---|
| 17 | Const _FuncName_ChooseFont = "ChooseFontA"
|
---|
| 18 | Const _FuncName_FindText = "FindTextA"
|
---|
| 19 | Const _FuncName_GetOpenFileName = "GetOpenFileNameA"
|
---|
| 20 | Const _FuncName_GetSaveFileName = "GetSaveFileNameA"
|
---|
| 21 | Const _FuncName_GetFileTitle = "GetFileTitleA"
|
---|
| 22 | Const _FuncName_PageSetupDlg = "PageSetupDlgA"
|
---|
| 23 | Const _FuncName_PrintDlg = "PrintDlgA"
|
---|
| 24 | #endif
|
---|
| 25 |
|
---|
[1] | 26 | TypeDef LPCOMMDLGHOOKPROC = *Function(hdlg As HWND, uiMsg As DWord, wp As WPARAM, lp As LPARAM) As ULONG_PTR
|
---|
| 27 |
|
---|
| 28 | ' Common dialog error
|
---|
| 29 | Const CDERR_DIALOGFAILURE = &HFFFF
|
---|
| 30 |
|
---|
| 31 | Const CDERR_GENERALCODES = &H0000
|
---|
| 32 | Const CDERR_STRUCTSIZE = &H0001
|
---|
| 33 | Const CDERR_INITIALIZATION = &H0002
|
---|
| 34 | Const CDERR_NOTEMPLATE = &H0003
|
---|
| 35 | Const CDERR_NOHINSTANCE = &H0004
|
---|
| 36 | Const CDERR_LOADSTRFAILURE = &H0005
|
---|
| 37 | Const CDERR_FINDRESFAILURE = &H0006
|
---|
| 38 | Const CDERR_LOADRESFAILURE = &H0007
|
---|
| 39 | Const CDERR_LOCKRESFAILURE = &H0008
|
---|
| 40 | Const CDERR_MEMALLOCFAILURE = &H0009
|
---|
| 41 | Const CDERR_MEMLOCKFAILURE = &H000A
|
---|
| 42 | Const CDERR_NOHOOK = &H000B
|
---|
| 43 | Const CDERR_REGISTERMSGFAIL = &H000C
|
---|
| 44 |
|
---|
| 45 | Const PDERR_PRINTERCODES = &H1000
|
---|
| 46 | Const PDERR_SETUPFAILURE = &H1001
|
---|
| 47 | Const PDERR_PARSEFAILURE = &H1002
|
---|
| 48 | Const PDERR_RETDEFFAILURE = &H1003
|
---|
| 49 | Const PDERR_LOADDRVFAILURE = &H1004
|
---|
| 50 | Const PDERR_GETDEVMODEFAIL = &H1005
|
---|
| 51 | Const PDERR_INITFAILURE = &H1006
|
---|
| 52 | Const PDERR_NODEVICES = &H1007
|
---|
| 53 | Const PDERR_NODEFAULTPRN = &H1008
|
---|
| 54 | Const PDERR_DNDMMISMATCH = &H1009
|
---|
| 55 | Const PDERR_CREATEICFAILURE = &H100A
|
---|
| 56 | Const PDERR_PRINTERNOTFOUND = &H100B
|
---|
| 57 | Const PDERR_DEFAULTDIFFERENT = &H100C
|
---|
| 58 |
|
---|
| 59 | Const CFERR_CHOOSEFONTCODES = &H2000
|
---|
| 60 | Const CFERR_NOFONTS = &H2001
|
---|
| 61 | Const CFERR_MAXLESSTHANMIN = &H2002
|
---|
| 62 |
|
---|
| 63 | Const FNERR_FILENAMECODES = &H3000
|
---|
| 64 | Const FNERR_SUBCLASSFAILURE = &H3001
|
---|
| 65 | Const FNERR_INVALIDFILENAME = &H3002
|
---|
| 66 | Const FNERR_BUFFERTOOSMALL = &H3003
|
---|
| 67 |
|
---|
| 68 | Const FRERR_FINDREPLACECODES = &H4000
|
---|
| 69 | Const FRERR_BUFFERLENGTHZERO = &H4001
|
---|
| 70 |
|
---|
| 71 | Const CCERR_CHOOSECOLORCODES = &H5000
|
---|
| 72 | Declare Function CommDlgExtendedError Lib "comdlg32" () As DWord
|
---|
| 73 |
|
---|
| 74 |
|
---|
| 75 | '-------------
|
---|
| 76 | ' ChooseColor
|
---|
| 77 | '-------------
|
---|
| 78 | Const CC_RGBINIT = &H00000001
|
---|
| 79 | Const CC_FULLOPEN = &H00000002
|
---|
| 80 | Const CC_PREVENTFULLOPEN = &H00000004
|
---|
| 81 | Const CC_SHOWHELP = &H00000008
|
---|
| 82 | Const CC_ENABLEHOOK = &H00000010
|
---|
| 83 | Const CC_ENABLETEMPLATE = &H00000020
|
---|
| 84 | Const CC_ENABLETEMPLATEHANDLE = &H00000040
|
---|
| 85 | Const CC_SOLIDCOLOR = &H00000080
|
---|
| 86 | Const CC_ANYCOLOR = &H00000100
|
---|
| 87 | TypeDef LPCCHOOKPROC = LPCOMMDLGHOOKPROC
|
---|
[141] | 88 | Type CHOOSECOLORW
|
---|
[1] | 89 | lStructSize As DWord
|
---|
| 90 | hwndOwner As HWND
|
---|
| 91 | hInstance As HINSTANCE
|
---|
| 92 | rgbResult As DWord
|
---|
| 93 | lpCustColors As *DWord
|
---|
| 94 | Flags As DWord
|
---|
| 95 | lCustData As DWord
|
---|
| 96 | lpfnHook As LPCCHOOKPROC
|
---|
[141] | 97 | lpTemplateName As LPCWSTR
|
---|
| 98 | End Type
|
---|
| 99 | Type CHOOSECOLORA
|
---|
| 100 | lStructSize As DWord
|
---|
| 101 | hwndOwner As HWND
|
---|
| 102 | hInstance As HINSTANCE
|
---|
| 103 | rgbResult As DWord
|
---|
| 104 | lpCustColors As *DWord
|
---|
| 105 | Flags As DWord
|
---|
| 106 | lCustData As DWord
|
---|
| 107 | lpfnHook As LPCCHOOKPROC
|
---|
[1] | 108 | lpTemplateName As LPCSTR
|
---|
| 109 | End Type
|
---|
[141] | 110 | #ifdef UNICODE
|
---|
| 111 | TypeDef CHOOSECOLOR = CHOOSECOLORW
|
---|
| 112 | #else
|
---|
| 113 | TypeDef CHOOSECOLOR = CHOOSECOLORA
|
---|
| 114 | #endif
|
---|
| 115 | Declare Function ChooseColor Lib "comdlg32" Alias _FuncName_ChooseColor (ByRef cc As CHOOSECOLOR) As BOOL
|
---|
[1] | 116 |
|
---|
| 117 |
|
---|
| 118 | '------------
|
---|
| 119 | ' ChooseFont
|
---|
| 120 | '------------
|
---|
| 121 | Const CF_SCREENFONTS = &H00000001
|
---|
| 122 | Const CF_PRINTERFONTS = &H00000002
|
---|
| 123 | Const CF_BOTH = CF_SCREENFONTS or CF_PRINTERFONTS
|
---|
| 124 | Const CF_SHOWHELP = &H00000004
|
---|
| 125 | Const CF_ENABLEHOOK = &H00000008
|
---|
| 126 | Const CF_ENABLETEMPLATE = &H00000010
|
---|
| 127 | Const CF_ENABLETEMPLATEHANDLE = &H00000020
|
---|
| 128 | Const CF_INITTOLOGFONTSTRUCT = &H00000040
|
---|
| 129 | Const CF_USESTYLE = &H00000080
|
---|
| 130 | Const CF_EFFECTS = &H00000100
|
---|
| 131 | Const CF_APPLY = &H00000200
|
---|
| 132 | Const CF_ANSIONLY = &H00000400
|
---|
| 133 | Const CF_SCRIPTSONLY = CF_ANSIONLY
|
---|
| 134 | Const CF_NOVECTORFONTS = &H00000800
|
---|
| 135 | Const CF_NOOEMFONTS = CF_NOVECTORFONTS
|
---|
| 136 | Const CF_NOSIMULATIONS = &H00001000
|
---|
| 137 | Const CF_LIMITSIZE = &H00002000
|
---|
| 138 | Const CF_FIXEDPITCHONLY = &H00004000
|
---|
| 139 | Const CF_WYSIWYG = &H00008000
|
---|
| 140 | Const CF_FORCEFONTEXIST = &H00010000
|
---|
| 141 | Const CF_SCALABLEONLY = &H00020000
|
---|
| 142 | Const CF_TTONLY = &H00040000
|
---|
| 143 | Const CF_NOFACESEL = &H00080000
|
---|
| 144 | Const CF_NOSTYLESEL = &H00100000
|
---|
| 145 | Const CF_NOSIZESEL = &H00200000
|
---|
| 146 | Const CF_SELECTSCRIPT = &H00400000
|
---|
| 147 | Const CF_NOSCRIPTSEL = &H00800000
|
---|
| 148 | Const CF_NOVERTFONTS = &H01000000
|
---|
| 149 | Const SIMULATED_FONTTYPE = &H8000
|
---|
| 150 | Const PRINTER_FONTTYPE = &H4000
|
---|
| 151 | Const SCREEN_FONTTYPE = &H2000
|
---|
| 152 | Const BOLD_FONTTYPE = &H0100
|
---|
| 153 | Const ITALIC_FONTTYPE = &H0200
|
---|
| 154 | Const REGULAR_FONTTYPE = &H0400
|
---|
| 155 | TypeDef LPCFHOOKPROC = LPCOMMDLGHOOKPROC
|
---|
[141] | 156 | Type CHOOSEFONTW
|
---|
[1] | 157 | lStructSize As DWord
|
---|
| 158 | hwndOwner As HWND
|
---|
| 159 | hDC As HDC
|
---|
[141] | 160 | lpLogFont As *LOGFONTW
|
---|
[1] | 161 | iPointSize As Long
|
---|
| 162 | Flags As DWord
|
---|
| 163 | rgbColors As DWord
|
---|
| 164 | lCustData As LPARAM
|
---|
| 165 | lpfnHook As LPCFHOOKPROC
|
---|
[141] | 166 | lpTemplateName As LPCWSTR
|
---|
| 167 | hInstance As HINSTANCE
|
---|
| 168 | lpszStyle As LPWSTR
|
---|
| 169 | nFontType As Word
|
---|
| 170 | ___MISSING_ALIGNMENT__ As Word
|
---|
| 171 | nSizeMin As Long
|
---|
| 172 | nSizeMax As Long
|
---|
| 173 | End Type
|
---|
| 174 | Type CHOOSEFONTA
|
---|
| 175 | lStructSize As DWord
|
---|
| 176 | hwndOwner As HWND
|
---|
| 177 | hDC As HDC
|
---|
| 178 | lpLogFont As *LOGFONTA
|
---|
| 179 | iPointSize As Long
|
---|
| 180 | Flags As DWord
|
---|
| 181 | rgbColors As DWord
|
---|
| 182 | lCustData As LPARAM
|
---|
| 183 | lpfnHook As LPCFHOOKPROC
|
---|
[1] | 184 | lpTemplateName As LPCSTR
|
---|
| 185 | hInstance As HINSTANCE
|
---|
| 186 | lpszStyle As LPSTR
|
---|
| 187 | nFontType As Word
|
---|
| 188 | ___MISSING_ALIGNMENT__ As Word
|
---|
| 189 | nSizeMin As Long
|
---|
| 190 | nSizeMax As Long
|
---|
| 191 | End Type
|
---|
[141] | 192 | #ifdef UNICODE
|
---|
| 193 | TypeDef CHOOSEFONT = CHOOSEFONTW
|
---|
| 194 | #else
|
---|
| 195 | TypeDef CHOOSEFONT = CHOOSEFONTA
|
---|
| 196 | #endif
|
---|
| 197 | Declare Function ChooseFont Lib "comdlg32" Alias _FuncName_ChooseFont (ByRef cf As CHOOSEFONT) As BOOL
|
---|
[1] | 198 |
|
---|
| 199 |
|
---|
| 200 | '----------
|
---|
| 201 | ' FindText
|
---|
| 202 | '----------
|
---|
| 203 | Const FR_DOWN = &H00000001
|
---|
| 204 | Const FR_WHOLEWORD = &H00000002
|
---|
| 205 | Const FR_MATCHCASE = &H00000004
|
---|
| 206 | Const FR_FINDNEXT = &H00000008
|
---|
| 207 | Const FR_REPLACE = &H00000010
|
---|
| 208 | Const FR_REPLACEALL = &H00000020
|
---|
| 209 | Const FR_DIALOGTERM = &H00000040
|
---|
| 210 | Const FR_SHOWHELP = &H00000080
|
---|
| 211 | Const FR_ENABLEHOOK = &H00000100
|
---|
| 212 | Const FR_ENABLETEMPLATE = &H00000200
|
---|
| 213 | Const FR_NOUPDOWN = &H00000400
|
---|
| 214 | Const FR_NOMATCHCASE = &H00000800
|
---|
| 215 | Const FR_NOWHOLEWORD = &H00001000
|
---|
| 216 | Const FR_ENABLETEMPLATEHANDLE = &H00002000
|
---|
| 217 | Const FR_HIDEUPDOWN = &H00004000
|
---|
| 218 | Const FR_HIDEMATCHCASE = &H00008000
|
---|
| 219 | Const FR_HIDEWHOLEWORD = &H00010000
|
---|
| 220 | TypeDef LPFRHOOKPROC = LPCOMMDLGHOOKPROC
|
---|
[141] | 221 | Type FINDREPLACEW
|
---|
[1] | 222 | lStructSize As DWord
|
---|
| 223 | hwndOwner As HWND
|
---|
| 224 | hInstance As HINSTANCE
|
---|
| 225 | Flags As DWord
|
---|
[141] | 226 | lpstrFindWhat As LPWSTR
|
---|
| 227 | lpstrReplaceWith As LPWSTR
|
---|
| 228 | wFindWhatLen As Word
|
---|
| 229 | wReplaceWithLen As Word
|
---|
| 230 | lCustData As LPARAM
|
---|
| 231 | lpfnHook As LPFRHOOKPROC
|
---|
| 232 | lpTemplateName As LPCWSTR
|
---|
| 233 | End Type
|
---|
| 234 | Type FINDREPLACEA
|
---|
| 235 | lStructSize As DWord
|
---|
| 236 | hwndOwner As HWND
|
---|
| 237 | hInstance As HINSTANCE
|
---|
| 238 | Flags As DWord
|
---|
[1] | 239 | lpstrFindWhat As LPSTR
|
---|
| 240 | lpstrReplaceWith As LPSTR
|
---|
| 241 | wFindWhatLen As Word
|
---|
| 242 | wReplaceWithLen As Word
|
---|
| 243 | lCustData As LPARAM
|
---|
| 244 | lpfnHook As LPFRHOOKPROC
|
---|
| 245 | lpTemplateName As LPCSTR
|
---|
| 246 | End Type
|
---|
[141] | 247 | #ifdef UNICODE
|
---|
| 248 | TypeDef FINDREPLACE = FINDREPLACEW
|
---|
| 249 | #else
|
---|
| 250 | TypeDef FINDREPLACE = FINDREPLACEA
|
---|
| 251 | #endif
|
---|
| 252 | Declare Function FindText Lib "comdlg32" Alias _FuncName_FindText (ByRef fr As FINDREPLACE) As BOOL
|
---|
[1] | 253 |
|
---|
| 254 |
|
---|
| 255 | '------------------------
|
---|
| 256 | ' Get Open/Save FileName
|
---|
| 257 | '------------------------
|
---|
| 258 | Const OFN_READONLY = &H00000001
|
---|
| 259 | Const OFN_OVERWRITEPROMPT = &H00000002
|
---|
| 260 | Const OFN_HIDEREADONLY = &H00000004
|
---|
| 261 | Const OFN_NOCHANGEDIR = &H00000008
|
---|
| 262 | Const OFN_SHOWHELP = &H00000010
|
---|
| 263 | Const OFN_ENABLEHOOK = &H00000020
|
---|
| 264 | Const OFN_ENABLETEMPLATE = &H00000040
|
---|
| 265 | Const OFN_ENABLETEMPLATEHANDLE = &H00000080
|
---|
| 266 | Const OFN_NOVALIDATE = &H00000100
|
---|
| 267 | Const OFN_ALLOWMULTISELECT = &H00000200
|
---|
| 268 | Const OFN_EXTENSIONDIFFERENT = &H00000400
|
---|
| 269 | Const OFN_PATHMUSTEXIST = &H00000800
|
---|
| 270 | Const OFN_FILEMUSTEXIST = &H00001000
|
---|
| 271 | Const OFN_CREATEPROMPT = &H00002000
|
---|
| 272 | Const OFN_SHAREAWARE = &H00004000
|
---|
| 273 | Const OFN_NOREADONLYRETURN = &H00008000
|
---|
| 274 | Const OFN_NOTESTFILECREATE = &H00010000
|
---|
| 275 | Const OFN_NONETWORKBUTTON = &H00020000
|
---|
| 276 | Const OFN_NOLONGNAMES = &H00040000
|
---|
| 277 | Const OFN_EXPLORER = &H00080000
|
---|
| 278 | Const OFN_NODEREFERENCELINKS = &H00100000
|
---|
| 279 | Const OFN_LONGNAMES = &H00200000
|
---|
| 280 | Const OFN_ENABLEINCLUDENOTIFY = &H00400000
|
---|
| 281 | Const OFN_ENABLESIZING = &H00800000
|
---|
| 282 | TypeDef LPOFNHOOKPROC = LPCOMMDLGHOOKPROC
|
---|
[141] | 283 | Type OPENFILENAMEW
|
---|
[1] | 284 | lStructSize As DWord
|
---|
| 285 | hwndOwner As HWND
|
---|
| 286 | hInstance As HINSTANCE
|
---|
[141] | 287 | lpstrFilter As LPCWSTR
|
---|
| 288 | lpstrCustomFilter As LPWSTR
|
---|
| 289 | nMaxCustFilter As DWord
|
---|
| 290 | nFilterIndex As DWord
|
---|
| 291 | lpstrFile As LPWSTR
|
---|
| 292 | nMaxFile As DWord
|
---|
| 293 | lpstrFileTitle As LPWSTR
|
---|
| 294 | nMaxFileTitle As DWord
|
---|
| 295 | lpstrInitialDir As LPCWSTR
|
---|
| 296 | lpstrTitle As LPCWSTR
|
---|
| 297 | Flags As DWord
|
---|
| 298 | nFileOffset As Word
|
---|
| 299 | nFileExtension As Word
|
---|
| 300 | lpstrDefExt As LPCWSTR
|
---|
| 301 | lCustData As LPARAM
|
---|
| 302 | lpfnHook As LPOFNHOOKPROC
|
---|
| 303 | lpTemplateName As LPCWSTR
|
---|
| 304 | End Type
|
---|
| 305 | Type OPENFILENAMEA
|
---|
| 306 | lStructSize As DWord
|
---|
| 307 | hwndOwner As HWND
|
---|
| 308 | hInstance As HINSTANCE
|
---|
[1] | 309 | lpstrFilter As LPCSTR
|
---|
| 310 | lpstrCustomFilter As LPSTR
|
---|
| 311 | nMaxCustFilter As DWord
|
---|
| 312 | nFilterIndex As DWord
|
---|
| 313 | lpstrFile As LPSTR
|
---|
| 314 | nMaxFile As DWord
|
---|
| 315 | lpstrFileTitle As LPSTR
|
---|
| 316 | nMaxFileTitle As DWord
|
---|
| 317 | lpstrInitialDir As LPCSTR
|
---|
| 318 | lpstrTitle As LPCSTR
|
---|
| 319 | Flags As DWord
|
---|
| 320 | nFileOffset As Word
|
---|
| 321 | nFileExtension As Word
|
---|
| 322 | lpstrDefExt As LPCSTR
|
---|
| 323 | lCustData As LPARAM
|
---|
| 324 | lpfnHook As LPOFNHOOKPROC
|
---|
| 325 | lpTemplateName As LPCSTR
|
---|
| 326 | End Type
|
---|
[141] | 327 | #ifdef UNICODE
|
---|
| 328 | TypeDef OPENFILENAME = OPENFILENAMEW
|
---|
| 329 | #else
|
---|
| 330 | TypeDef OPENFILENAME = OPENFILENAMEA
|
---|
| 331 | #endif
|
---|
| 332 | Declare Function GetOpenFileName Lib "comdlg32" Alias _FuncName_GetOpenFileName (ByRef ofn As OPENFILENAME) As BOOL
|
---|
| 333 | Declare Function GetSaveFileName Lib "comdlg32" Alias _FuncName_GetSaveFileName (ByRef ofn As OPENFILENAME) As BOOL
|
---|
| 334 | Declare Function GetFileTitle Lib "comdlg32" Alias _FuncName_GetFileTitle (lpszFile As LPCTSTR, lpszTitle As LPTSTR, cbBuf As Word) As Integer
|
---|
[1] | 335 |
|
---|
| 336 |
|
---|
| 337 | '--------------
|
---|
| 338 | ' PageSetupDlg
|
---|
| 339 | '--------------
|
---|
| 340 | Const PSD_DEFAULTMINMARGINS = &H00000000
|
---|
| 341 | Const PSD_INWININIINTLMEASURE = &H00000000
|
---|
| 342 | Const PSD_MINMARGINS = &H00000001
|
---|
| 343 | Const PSD_MARGINS = &H00000002
|
---|
| 344 | Const PSD_INTHOUSANDTHSOFINCHES = &H00000004
|
---|
| 345 | Const PSD_INHUNDREDTHSOFMILLIMETERS = &H00000008
|
---|
| 346 | Const PSD_DISABLEMARGINS = &H00000010
|
---|
| 347 | Const PSD_DISABLEPRINTER = &H00000020
|
---|
| 348 | Const PSD_NOWARNING = &H00000080
|
---|
| 349 | Const PSD_DISABLEORIENTATION = &H00000100
|
---|
| 350 | Const PSD_RETURNDEFAULT = &H00000400
|
---|
| 351 | Const PSD_DISABLEPAPER = &H00000200
|
---|
| 352 | Const PSD_SHOWHELP = &H00000800
|
---|
| 353 | Const PSD_ENABLEPAGESETUPHOOK = &H00002000
|
---|
| 354 | Const PSD_ENABLEPAGESETUPTEMPLATE = &H00008000
|
---|
| 355 | Const PSD_ENABLEPAGESETUPTEMPLATEHANDLE = &H00020000
|
---|
| 356 | Const PSD_ENABLEPAGEPAINTHOOK = &H00040000
|
---|
| 357 | Const PSD_DISABLEPAGEPAINTING = &H00080000
|
---|
| 358 | Const PSD_NONETWORKBUTTON = &H00200000
|
---|
| 359 | TypeDef LPPAGESETUPHOOK = LPCOMMDLGHOOKPROC
|
---|
| 360 | TypeDef LPPAGEPAINTHOOK = LPCOMMDLGHOOKPROC
|
---|
[141] | 361 | Type PAGESETUPDLGW
|
---|
[1] | 362 | lStructSize As DWord
|
---|
| 363 | hwndOwner As HWND
|
---|
| 364 | hDevMode As HGLOBAL
|
---|
| 365 | hDevNames As HGLOBAL
|
---|
| 366 | Flags As DWord
|
---|
| 367 | ptPaperSize As POINTAPI
|
---|
| 368 | rtMinMargin As RECT
|
---|
| 369 | rtMargin As RECT
|
---|
| 370 | hInstance As HINSTANCE
|
---|
| 371 | lCustData As LPARAM
|
---|
| 372 | lpfnPageSetupHook As LPPAGESETUPHOOK
|
---|
| 373 | lpfnPagePaintHook As LPPAGEPAINTHOOK
|
---|
[141] | 374 | lpPageSetupTemplateName As LPCWSTR
|
---|
| 375 | hPageSetupTemplate As HGLOBAL
|
---|
| 376 | End Type
|
---|
| 377 | Type PAGESETUPDLGA
|
---|
| 378 | lStructSize As DWord
|
---|
| 379 | hwndOwner As HWND
|
---|
| 380 | hDevMode As HGLOBAL
|
---|
| 381 | hDevNames As HGLOBAL
|
---|
| 382 | Flags As DWord
|
---|
| 383 | ptPaperSize As POINTAPI
|
---|
| 384 | rtMinMargin As RECT
|
---|
| 385 | rtMargin As RECT
|
---|
| 386 | hInstance As HINSTANCE
|
---|
| 387 | lCustData As LPARAM
|
---|
| 388 | lpfnPageSetupHook As LPPAGESETUPHOOK
|
---|
| 389 | lpfnPagePaintHook As LPPAGEPAINTHOOK
|
---|
[1] | 390 | lpPageSetupTemplateName As LPCSTR
|
---|
| 391 | hPageSetupTemplate As HGLOBAL
|
---|
| 392 | End Type
|
---|
[141] | 393 | #ifdef UNICODE
|
---|
| 394 | TypeDef PAGESETUPDLG = PAGESETUPDLGW
|
---|
| 395 | #else
|
---|
| 396 | TypeDef PAGESETUPDLG = PAGESETUPDLGA
|
---|
| 397 | #endif
|
---|
[1] | 398 |
|
---|
[141] | 399 | Declare Function PageSetupDlg Lib "comdlg32" Alias _FuncName_PageSetupDlg (ByRef psd As PAGESETUPDLG) As BOOL
|
---|
[1] | 400 |
|
---|
[141] | 401 |
|
---|
[1] | 402 | '----------
|
---|
| 403 | ' PrintDlg
|
---|
| 404 | '----------
|
---|
| 405 | Const PD_ALLPAGES = &H00000000
|
---|
| 406 | Const PD_SELECTION = &H00000001
|
---|
| 407 | Const PD_PAGENUMS = &H00000002
|
---|
| 408 | Const PD_NOSELECTION = &H00000004
|
---|
| 409 | Const PD_NOPAGENUMS = &H00000008
|
---|
| 410 | Const PD_COLLATE = &H00000010
|
---|
| 411 | Const PD_PRINTTOFILE = &H00000020
|
---|
| 412 | Const PD_PRINTSETUP = &H00000040
|
---|
| 413 | Const PD_NOWARNING = &H00000080
|
---|
| 414 | Const PD_RETURNDC = &H00000100
|
---|
| 415 | Const PD_RETURNIC = &H00000200
|
---|
| 416 | Const PD_RETURNDEFAULT = &H00000400
|
---|
| 417 | Const PD_SHOWHELP = &H00000800
|
---|
| 418 | Const PD_ENABLEPRINTHOOK = &H00001000
|
---|
| 419 | Const PD_ENABLESETUPHOOK = &H00002000
|
---|
| 420 | Const PD_ENABLEPRINTTEMPLATE = &H00004000
|
---|
| 421 | Const PD_ENABLESETUPTEMPLATE = &H00008000
|
---|
| 422 | Const PD_ENABLEPRINTTEMPLATEHANDLE = &H00010000
|
---|
| 423 | Const PD_ENABLESETUPTEMPLATEHANDLE = &H00020000
|
---|
| 424 | Const PD_USEDEVMODECOPIES = &H00040000
|
---|
| 425 | Const PD_USEDEVMODECOPIESANDCOLLATE = &H00040000
|
---|
| 426 | Const PD_DISABLEPRINTTOFILE = &H00080000
|
---|
| 427 | Const PD_HIDEPRINTTOFILE = &H00100000
|
---|
| 428 | Const PD_NONETWORKBUTTON = &H00200000
|
---|
| 429 | TypeDef LPPAGEPAINTHOOK = LPCOMMDLGHOOKPROC
|
---|
| 430 | TypeDef LPSETUPHOOKPROC = LPCOMMDLGHOOKPROC
|
---|
| 431 | #ifdef _WIN64
|
---|
[141] | 432 | Type PRINTDLGW
|
---|
[1] | 433 | #else
|
---|
[141] | 434 | Type Align(1) PRINTDLGW
|
---|
[1] | 435 | #endif
|
---|
| 436 | lStructSize As DWord
|
---|
| 437 | hwndOwner As HWND
|
---|
| 438 | hDevMode As HGLOBAL
|
---|
| 439 | hDevNames As HGLOBAL
|
---|
| 440 | hDC As HDC
|
---|
| 441 | Flags As DWord
|
---|
| 442 | nFromPage As Word
|
---|
| 443 | nToPage As Word
|
---|
| 444 | nMinPage As Word
|
---|
| 445 | nMaxPage As Word
|
---|
| 446 | nCopies As Word
|
---|
| 447 | hInstance As HINSTANCE
|
---|
| 448 | lCustData As LPARAM
|
---|
| 449 | lpfnPrintHook As LPPAGEPAINTHOOK
|
---|
| 450 | lpfnSetupHook As LPSETUPHOOKPROC
|
---|
[141] | 451 | lpPrintTemplateName As LPCWSTR
|
---|
| 452 | lpSetupTemplateName As LPCWSTR
|
---|
| 453 | hPrintTemplate As HGLOBAL
|
---|
| 454 | hSetupTemplate As HGLOBAL
|
---|
| 455 | End Type
|
---|
| 456 | #ifdef _WIN64
|
---|
| 457 | Type PRINTDLGA
|
---|
| 458 | #else
|
---|
| 459 | Type Align(1) PRINTDLGA
|
---|
| 460 | #endif
|
---|
| 461 | lStructSize As DWord
|
---|
| 462 | hwndOwner As HWND
|
---|
| 463 | hDevMode As HGLOBAL
|
---|
| 464 | hDevNames As HGLOBAL
|
---|
| 465 | hDC As HDC
|
---|
| 466 | Flags As DWord
|
---|
| 467 | nFromPage As Word
|
---|
| 468 | nToPage As Word
|
---|
| 469 | nMinPage As Word
|
---|
| 470 | nMaxPage As Word
|
---|
| 471 | nCopies As Word
|
---|
| 472 | hInstance As HINSTANCE
|
---|
| 473 | lCustData As LPARAM
|
---|
| 474 | lpfnPrintHook As LPPAGEPAINTHOOK
|
---|
| 475 | lpfnSetupHook As LPSETUPHOOKPROC
|
---|
[1] | 476 | lpPrintTemplateName As LPCSTR
|
---|
| 477 | lpSetupTemplateName As LPCSTR
|
---|
| 478 | hPrintTemplate As HGLOBAL
|
---|
| 479 | hSetupTemplate As HGLOBAL
|
---|
| 480 | End Type
|
---|
[141] | 481 | #ifdef UNICODE
|
---|
| 482 | TypeDef PRINTDLG = PRINTDLGW
|
---|
| 483 | #else
|
---|
| 484 | TypeDef PRINTDLG = PRINTDLGA
|
---|
| 485 | #endif
|
---|
| 486 | Declare Function PrintDlg Lib "comdlg32" Alias _FuncName_PrintDlg (ByRef pd As PRINTDLG) As BOOL
|
---|
[1] | 487 |
|
---|
| 488 |
|
---|
| 489 | #endif '_INC_COMMDLG
|
---|