ISDBCommonDialog::Flags

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBCommonDialog, Interface ISDBCommonDialog

Property Get/Let Flags As Long


Property description

Some combination of the values below. These constants are flags.

The most needed constants are defined in MediaMonkey init.vbs (which is included each time you run a script in MediaMonkey) so you don't have to define them again.

' Common Dialog (Open/Save) constants
const cdlOFNOverwritePrompt    = &H0002
const cdlOFNHideReadOnly       = &H0004
const cdlOFNNoChangeDir        = &H0008
const cdlOFNAllowMultiselect   = &H0200
const cdlOFNExtensionDifferent = &H0400
const cdlOFNPathMustExist      = &H0800
const cdlOFNFileMustExist      = &H1000
const cdlOFNCreatePrompt       = &H2000
const cdlOFNNoReadOnlyReturn   = &H8000

Below is the complete list of constants that can be used, as described in MSDN (OPENFILENAME Flags).

Constant name Constant value
OFN_READONLY &H00000001
OFN_OVERWRITEPROMPT &H00000002
OFN_HIDEREADONLY &H00000004
OFN_NOCHANGEDIR &H00000008
OFN_SHOWHELP &H00000010
OFN_ENABLEHOOK &H00000020
OFN_ENABLETEMPLATE &H00000040
OFN_ENABLETEMPLATEHANDLE &H00000080
OFN_NOVALIDATE &H00000100
OFN_ALLOWMULTISELECT &H00000200
OFN_EXTENSIONDIFFERENT &H00000400
OFN_PATHMUSTEXIST &H00000800
OFN_FILEMUSTEXIST &H00001000
OFN_CREATEPROMPT &H00002000
OFN_SHAREAWARE &H00004000
OFN_NOREADONLYRETURN &H00008000
OFN_NOTESTFILECREATE &H00010000
OFN_NONETWORKBUTTON &H00020000
OFN_NOLONGNAMES &H00040000
OFN_EXPLORER &H00080000
OFN_NODEREFERENCELINKS &H00100000
OFN_LONGNAMES &H00200000
OFN_ENABLEINCLUDENOTIFY &H00400000
OFN_ENABLESIZING &H00800000