Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:vfs_plugins:vfs_createarchivedialog

VFS_CreateArchiveDialog(
     LPVFSARCHIVECREATEDIALOG:lpCreateData
)
→ HWND

Arguments

lpCreateData

[in] Points to a VFSARCHIVECREATEDIALOG structure describing the dialog to create

FieldTypeDescription
cbSizeUINTSize of the structure (filled in by Opus)
uiFmtIndexUINTIndex of the format
hwndParentHWNDParent window
dwFlagsDWORDFlags (see below)
dwMinWidthDWORDSuggested 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
pszArgsLPCWSTRInitialization argument string
iFileCountintNumber of selected files (does not include the contents of folders)
iDirCountintNumber of selected folders

Return value

The window handle of the dialog.

Description

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_ADDTOARCHIVEBeing called for "add to archive" instead of creating a new archive

The following messages (based on WM_APP) are sent to the dialog:

VFSMSG_GETCREATIONDATAReturn (via DWLP_MSGRESULT) a data structure representing the current dialog settings
VFSMSG_TESTVALIDFILENAMElParam = LPWSTR pszName. Return TRUE (via DWLP_MSGRESULT) if the filename is not valid
VFSMSG_VALIDATEPARMSlParam = LPWSTR pszName. Return TRUE (via DWLP_MSGRESULT) if the current dialog settings are not valid
VFSMSG_GETFILENAMEwParam = UINT cchBuf, lParam = LPWSTR pszBuf. This message is sent from the dialog to its parent
VFSMSG_SETFILENAMEwParam = BOOL (TRUE means only change the extension), lParam = LPWSTR pszName
VFSMSG_VALIDEXTENSIONwParam = 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).