Includes&Samples |
MSComDlg, COM interface constants for VB.Net / VBScriptMSComDlg - interface constants This page contains simple VBA include for the MSComDlg COM library.
library parameters
PrinterConstantsenum, 16 members.'Printer Dialog Box Constants Public Enum PrinterConstants 'Sets or returns state of All Pages option button. cdlPDAllPages = 0 '&H0 'Sets or returns state of Collate check box. cdlPDCollate = 16 '&H10 'Disables the Print to File check box. cdlPDDisablePrintToFile = 524288 '&H80000 'The Print to File check box is not displayed. cdlPDHidePrintToFile = 1048576 '&H100000 'Sets or returns the state of the Pages option button cdlPDNoPageNums = 8 '&H8 'Disables the Selection option button. cdlPDNoSelection = 4 '&H4 'Prevents a warning message when there is no default printer. cdlPDNoWarning = 128 '&H80 'Sets or returns the state of the Pages option button. cdlPDPageNums = 2 '&H2 'Displays the Print Setup dialog box rather than the Print dialog box. cdlPDPrintSetup = 64 '&H40 'Sets or returns the state of the Print to File check box. cdlPDPrintToFile = 32 '&H20 'Returns a device context for the printer selection. cdlPDReturnDC = 256 '&H100 'Returns default printer name. cdlPDReturnDefault = 1024 '&H400 'Returns an information context for the printer selection. cdlPDReturnIC = 512 '&H200 'Sets or returns the state of the Selection option button. cdlPDSelection = 1 '&H1 'Dialog box displays the Help button. cdlPDHelpButton = 2048 '&H800 'Sets support for multiple copies. cdlPDUseDevModeCopies = 262144 '&H40000 End Enum ColorConstantsenum, 4 members.'Color Dialog Box Constants Public Enum ColorConstants 'Sets initial color value for the dialog box. cdlCCRGBInit = 1 '&H1 'Entire dialog box is displayed, including the Define Custom Colors section. cdlCCFullOpen = 2 '&H2 'Disables the Define Custom Colors section of the dialog box. cdlCCPreventFullOpen = 4 '&H4 'Dialog box displays a Help button. cdlCCHelpButton = 8 '&H8 End Enum FileOpenConstantsenum, 17 members.'File Open/Save Dialog Box Constants Public Enum FileOpenConstants 'Checks Read Only check box for Open and Save As dialog boxes. cdlOFNReadOnly = 1 '&H1 'Generates a message box if the selected file already exists. cdlOFNOverwritePrompt = 2 '&H2 'Hides the Read Only check box. cdlOFNHideReadOnly = 4 '&H4 'Sets the current directory to what it was when the dialog box was invoked. cdlOFNNoChangeDir = 8 '&H8 'Causes the dialog box to display the Help button. cdlOFNHelpButton = 16 '&H10 'Allows invalid characters in the returned file name. cdlOFNNoValidate = 256 '&H100 'Allows the File Name list box to have multiple selections. cdlOFNAllowMultiselect = 512 '&H200 'Extension of returned file name is different from the one set by DefaultExt. cdlOFNExtensionDifferent = 1024 '&H400 'User can enter only valid path names. cdlOFNPathMustExist = 2048 '&H800 'User can enter only names of existing files. cdlOFNFileMustExist = 4096 '&H1000 'Asks if the user wants to create a file that does not currently exist. cdlOFNCreatePrompt = 8192 '&H2000 'Sharing violation errors will be ignored. cdlOFNShareAware = 16384 '&H4000 'The returned file will not have the Read Only attribute set. cdlOFNNoReadOnlyReturn = 32768 '&H8000 'No long filenames. cdlOFNNoLongNames = 262144 '&H40000 'Windows 95 Open A File dialog box template. cdlOFNExplorer = 524288 '&H80000 'No shortcuts. cdlOFNNoDereferenceLinks = 1048576 '&H100000 'Long filenames. cdlOFNLongNames = 2097152 '&H200000 End Enum FontsConstantsenum, 18 members.'Fonts Dialog Box Constants Public Enum FontsConstants 'Dialog box lists only screen fonts supported by the system. cdlCFScreenFonts = 1 '&H1 'Dialog box lists only fonts supported by the printer. cdlCFPrinterFonts = 2 '&H2 'Dialog box lists available screen and printer fonts. cdlCFBoth = 3 '&H3 'Dialog box displays a Help button. cdlCFHelpButton = 4 '&H4 'Dialog enables strikeout, underline, and color effects. cdlCFEffects = 256 '&H100 'Dialog box enables the Apply button. cdlCFApply = 512 '&H200 'Dialog box allows only fonts that use the Windows character set. cdlCFANSIOnly = 1024 '&H400 'Dialog box should not allow vector-font selections. cdlCFNoVectorFonts = 2048 '&H800 'Dialog box should not allow graphic device interface (GDI) font simulations. cdlCFNoSimulations = 4096 '&H1000 'Selects font sizes within the range specified by Min and Max properties. cdlCFLimitSize = 8192 '&H2000 'Dialog box should select only fixed-pitch fonts. cdlCFFixedPitchOnly = 16384 '&H4000 'Allows only the selection of fonts available to both the screen and printer. cdlCFWYSIWYG = 32768 '&H8000 'Displays an error if a user selects a font or style that doesn't exist. cdlCFForceFontExist = 65536 '&H10000 'Dialog box should allow only the selection of scaleable fonts. cdlCFScalableOnly = 131072 '&H20000 'Dialog box should allow only the selection of True Type fonts. cdlCFTTOnly = 262144 '&H40000 'No font name selected. cdlCFNoFaceSel = 524288 '&H80000 'No font style selected. cdlCFNoStyleSel = 1048576 '&H100000 'No font size selected. cdlCFNoSizeSel = 2097152 '&H200000 End Enum ErrorConstantsenum, 33 members.'Common Dialog Error Constants Public Enum ErrorConstants 'Invalid property value cdlInvalidPropertyValue = 380 '&H17C 'Property is write-only cdlGetNotSupported = 394 '&H18A 'Property is read-only cdlSetNotSupported = 383 '&H17F 'Couldn't allocate memory for FileName or Filter. cdlAlloc = 32752 '&H7FF0 'Cancel was selected. cdlCancel = 32755 '&H7FF3 'Failed to show the common dialog. cdlDialogFailure = -32768 '&HFFFF8000 'The function failed to load a specified resource. cdlFindResFailure = 32761 '&H7FF9 'Call to Windows Help failed. cdlHelp = 32751 '&H7FEF 'The function failed during initialization. cdlInitialization = 32765 '&H7FFD 'The function failed to load a specified resource. cdlLoadResFailure = 32760 '&H7FF8 'The function failed to load a specified string. cdlLoadStrFailure = 32762 '&H7FFA 'The function failed to lock a specified resource. cdlLockResFailure = 32759 '&H7FF7 'The function was unable to allocate memory for internal data structures. cdlMemAllocFailure = 32758 '&H7FF6 'The function was unable to lock the memory associated with a handle. cdlMemLockFailure = 32757 '&H7FF5 'No fonts exist. cdlNoFonts = 24574 '&H5FFE 'The buffer at which the member LpstrFile points is too small. cdlBufferTooSmall = 20476 '&H4FFC 'File name is invalid. cdlInvalidFileName = 20477 '&H4FFD 'An attempt to subclass a listbox failed due to insufficient memory. cdlSubclassFailure = 20478 '&H4FFE 'The PrintDlg function failed when creating an information context. cdlCreateICFailure = 28661 '&H6FF5 'DevMode and DevNames data structures describe two different printers. cdlDndmMismatch = 28662 '&H6FF6 'The printer-device driver failed to initialize a DEVMODE data structure. cdlGetDevModeFail = 28666 '&H6FFA 'The PrintDlg function failed during initialization. cdlInitFailure = 28665 '&H6FF9 'The PrintDlg function failed to load the specified printer's device driver. cdlLoadDrvFailure = 28667 '&H6FFB 'A default printer does not exist. cdlNoDefaultPrn = 28663 '&H6FF7 'No printer device-drivers were found. cdlNoDevices = 28664 '&H6FF8 'The Common Dialog function failed to parse the strings in WIN.INI. cdlParseFailure = 28669 '&H6FFD 'The printer device driver failed to initialize a DevMode data structure. cdlPrinterCodes = 28671 '&H6FFF 'The [devices] section of WIN.INI does not contain an entry for the printer. cdlPrinterNotFound = 28660 '&H6FF4 'The PDReturnDefault flag was set, but a field was nonzero. cdlRetDefFailure = 28668 '&H6FFC 'Setup failed cdlSetupFailure = 28670 '&H6FFE 'No template provided by the application. cdlNoTemplate = 32764 '&H7FFC 'Application did not provide an instance handle. cdlNoInstance = 32763 '&H7FFB 'Invalid procedure call in safe mode cdlInvalidSafeModeProcCall = 680 '&H2A8 End Enum HelpConstantsenum, 12 members.'Help Constants Public Enum HelpConstants 'Displays Help for a particular topic. cdlHelpContext = 1 '&H1 'Notifies the Help application that the specified Help file is no longer in use. cdlHelpQuit = 2 '&H2 'Displays the index of the specified Help file. cdlHelpIndex = 3 '&H3 'Displays the contents topic in the current Help file. cdlHelpContents = 3 '&H3 'Display Help for using the Help application itself. cdlHelpHelpOnHelp = 4 '&H4 'Set the current Index for multi-index Help. cdlHelpSetIndex = 5 '&H5 'Designates a specific topic as the contents topic. cdlHelpSetContents = 5 '&H5 'Displays a topic identified by a context number. cdlHelpContextPopup = 8 '&H8 'Creates a Help file that displays text in only one font. cdlHelpForceFile = 9 '&H9 'Displays Help for a particular keyword. cdlHelpKey = 257 '&H101 'Displays Help for a particular command. cdlHelpCommandHelp = 258 '&H102 'Call the search engine in Windows Help. cdlHelpPartialKey = 261 '&H105 End Enum PrinterOrientationConstantsenum, 2 members.'Printer Orientation Constants Public Enum PrinterOrientationConstants 'Portrait printer paper orientation cdlPortrait = 1 '&H1 'Landscape printer paper orientation cdlLandscape = 2 '&H2 End Enum |