VFS_CreateArchiveDialog(
LPVFSARCHIVECREATEDIALOG:lpCreateData
)
→ HWND
[in] Points to a VFSARCHIVECREATEDIALOG structure describing the dialog to create
| Field | Type | Description |
| cbSize | UINT | Size of the structure (filled in by Opus) |
| uiFmtIndex | UINT | Index of the format |
| hwndParent | HWND | Parent window |
| dwFlags | DWORD | Flags (see below) |
| dwMinWidth | DWORD | Suggested minimum width of the dialog. Larger or smaller dialogs are fine, but use this if you want to make sure the dialog spans the full width |
| pszArgs | LPCWSTR | Initialization argument string |
| iFileCount | int | Number of selected files (does not include the contents of folders) |
| iDirCount | int | Number of selected folders |
The VFS_CreateArchiveDialog function is called to create the parameter dialog for an archive format.
Formats that provide a parameter dialog set the VFSACIF_HASDIALOG flag in VFS_GetArchiveCreationInfo.
The following flag can be set in the dwFlags field:
| VFSACDF_ADDTOARCHIVE | Being called for "add to archive" instead of creating a new archive |
The following messages (based on WM_APP) are sent to the dialog:
| VFSMSG_GETCREATIONDATA | Return (via DWLP_MSGRESULT) a data structure representing the current dialog settings |
| VFSMSG_TESTVALIDFILENAME | lParam = LPWSTR pszName. Return TRUE (via DWLP_MSGRESULT) if the filename is not valid |
| VFSMSG_VALIDATEPARMS | lParam = LPWSTR pszName. Return TRUE (via DWLP_MSGRESULT) if the current dialog settings are not valid |
| VFSMSG_GETFILENAME | wParam = UINT cchBuf, lParam = LPWSTR pszBuf. This message is sent from the dialog to its parent |
| VFSMSG_SETFILENAME | wParam = BOOL (TRUE means only change the extension), lParam = LPWSTR pszName |
| VFSMSG_VALIDEXTENSION | wParam = LPWSTR pszExtOnly (the default extension, i.e. from the last dot, inclusive), lParam = LPWSTR pszName (the full name). Return (via DWLP_MSGRESULT) TRUE if the extension is not valid, FALSE if the extension is valid and the default (pszExtOnly) should be used, or a pointer into the lParam string (to a dot) if the extension is valid and starts at that point. Use the last option for complex extensions like ".7z.001" |
See also VFS_GetArchiveCreationInfo, VFS_ParseArchiveCreationArgs, VFS_CreateArchive and VFS_FreeArchiveCreationData.
This function was added in Directory Opus 10 (VFSPLUGINVERSION 4).