Mark |
Meaning |
Ofn_allowmultiselect |
You can select multiple names in the specified file name list box. If you have set the ofn_explorer tag at the same time, the dialog box uses the Explorer-style user interface; otherwise, it uses the old-style user interface. If you select more than one file,LpstrfileBuffer returns the names of all selected files in the current directory.NfileoffsetThe Member is the offset (in bytes or characters) to the first file name, andNfileextensionMembers are not used. For the explorer Style dialog box, the directory and file name are separated by null, And the last file name is followed by an additional null. This format enables the Explorer-Style dialog box to return long file names containing spaces. For the Old Style dialog box, the directory and file string are separated by spaces. The function uses short file names for file names with spaces. You can useFindfirstfileThe function converts short and long file names. If you specify a custom template for the Old Style dialog box, the definition of the file name list must contain the lbs_extendedsel value. |
Ofn_createprompt |
If you specify a file that does not exist, the mark dialog box prompts you whether to create the file. If you choose to create this file, the dialog box is closed and the function returns the specified name. Otherwise, the dialog box continues. If you use this tag with the ofn_allowmultiselect mark, the dialog box allows you to specify a non-existent file. |
Ofn_dontaddtorecent |
Windows 2000:Prevent the system from adding shortcuts to the selected files to the recently used documents. The location of the directory to be retrieved is also indicated by csidl_recent.ShgetspecialfolderlocationFunction. |
Ofn_enablehook |
ActivateLpfnhookThe hook function specified by the Member. |
Ofn_enabletransferdeno= |
Windows 2000:When a user opens a folder, a dialog box is sentCdn_includeitemNotify the message to yourOfnhookprocProgram. The dialog box sends a notification to each project in the recently opened folder. These messages allow you to control the list of folder items displayed in the dialog box. |
Ofn_enablesizing |
Windows 2000, Windows 98:The explorer Style dialog box can be resized with the mouse or keyboard. The explorer-style open and save as dialog box allows you to adjust the size regardless of whether the flag is set. This flag is only required when you provide a hook program or custom template. The Old Style dialog box cannot be resized. |
Ofn_enabletemplate |
NoteLptemplatenameThe Member is the name of the template resource pointing to the dialog box.HinstanceIn the member Identification Module. If the ofn_explorer flag is set, the system uses the specified template to create a dialog box, which is a subwindow of the default explorer Style dialog box. If the ofn_explorer tag is not set, the Old Style dialog box is used to replace the default dialog box. |
Ofn_enabletemplatehandle |
NoteHinstanceMembers can recognize data blocks that contain the pre-loaded dialog template. If this tag is specified, the system ignores it.Lptemplatename. If the ofn_explorer flag is set, the system uses the specified template to create a dialog box, which is a subwindow of the default explorer Style dialog box. If the ofn_explorer tag is not set, the system uses the template to create an Old Style dialog box to replace the default dialog box. |
Ofn_explorer |
Indicates that any new Explorer-style user modules are used in the open or Save As dialog box. For more information, see Explorer-style hook procedures and explorer-style custom templates. By default, the open and save as dialog box uses the Explorer-style user interface, regardless of whether this flag is set. This tag is required only when you provide a hook program or custom template or set the ofn_allowmultiselect tag. If you want to use the old style interface, omit the ofn_explorer tag and provide a replacement of the old style template or hook program. If you want to use the old style but do not need a custom template or hook program, simply provide a hook program and let it return false. |
Ofn_extensiondifferent |
Specify the extension andLpstrdefextThe specified extension is different. IfLpstrdefextIs null. This flag is not used by the function. |
Ofn_filemustexist |
You can only enter the name of an existing file in the Login Field of the file name. If the tag is specified and the user enters an invalid name, the dialog box shows a waiting message box. If this tag is specified, the ofn_pathmustexist tag is also used. |
Ofn_forceshowhidden |
Windows 2000:The system and hidden attribute files are forcibly displayed to overwhelm the display or hidden files set by the user. Otherwise, files with system and hidden tags are not displayed. |
Ofn_hidereadonly |
Hide the read-only check box. |
Ofn_longnames |
For the Old Style dialog box, this mark causes the dialog box to use a long file name. If this tag is not specified, or if the ofn_allowmultiselect tag is also set, the Old Style dialog box uses a short file name (in the 8.3 format) for the file name with spaces ). Ignore this flag in the explorer Style dialog box. A long file name is usually displayed. |
Ofn_nochangedir |
If you change the directory when searching for a file, restore the initial value of the current directory. |
Ofn_nodereferencelinks |
The Guide dialog box returns the path and file name for the selected shortcut (. lnk) file. If this value is not specified, the dialog box returns the path and file name of the file referenced by this shortcut. |
Ofn_nolongnames |
For the Old Style dialog box, This identifier causes the dialog box to use the short file name (8.3 format ). Ignore this flag in the explorer Style dialog box. A long file name is usually displayed. |
Ofn_nonetworkbutton |
Hide and display style buttons. |
Ofn_noreadonlyreturn |
Specify that the returned file does not contain the read-only check box and is not in the write-protected directory. |
Ofn_notestfilecreate |
The specified file is not created before the dialog box is closed. If the application saves the file to a created non-image sharing, this tag should be specified. When an application specifies this flag, the library cannot check write protection, the disk is full, open the drive door or network protection. The application must be careful when using this flag, because once the file is closed, it cannot be re-opened. |
Ofn_novalidate |
The public dialog box allows invalid characters in the returned file name. Typically, the program being called uses a hook programFileokstringMessage check file name. If the text box in the editing control is empty or contains only spaces, the file and directory list boxes are updated. If the text box in the editing control contains something elseNfileoffset andNfileextensionIs generated by analyzing the text. No Default extension is added to text, and no text is copiedLpstrfiletitleThe specified buffer. IfNfileoffsetThe specified value is smaller than 0, and the file is invalid. Otherwise, the file name is valid. If ofn_novalidate is not specified,NfileextensionAndNfileoffsetCan be used. |
Ofn_overwriteprompt |
If the selected file already exists, use the Save As dialog box to generate a message box. You must confirm whether the file is overwritten. |
Ofn_pathmustexist |
Specify the path and file name that the user can only enter. If this tag is used and you type an effective path and file name in the input field of the file name, the function of the dialog box displays a waiting message. |
Ofn_readonly |
When the dialog box is created, the selected read-only check box is displayed. This flag indicates the status of the read-only check box when the dialog box is closed. |
Ofn_policaware |
Indicates that ifOpenfileThe function fails because of a network share conflict. This error is ignored and the selected file name is returned in the dialog box. If this flag is not set, when the selected file name conflicts with network sharing, the dialog box will send a notification to your hook program. If you have set the ofn_explorer flag, the dialog box is sentCdn_1_violationSend messages to the hook program. If you have not set ofn_explorer, send it in the dialog boxVistringThe registered message is sent to the hook program. |
Ofn_showhelp |
Display the Help button in the dialog box.HwndownerThe member must specify a window, which is sent as the receiving dialog boxHelpmsgstringRegistered message. The message is sent in the dialog box when you click the Help button. When you click the Help button, An Explorer-Style dialog box is sentCdn_helpNotify the message to your hook program. |