119 std::vector<wchar_t> _buffer;
124 std::wstring _description;
选择文件夹对话框
Definition FolderDialog.h:109
virtual int ShowDialog(Window *owner=nullptr) override
显示对话框,并指定所有者窗口
const Property< bool > NewFolderButton
是否显示“新建文件夹”按钮
Definition FolderDialog.h:150
const ReadOnlyProperty< std::wstring > SelectedPath
选中文件夹的路径
Definition FolderDialog.h:145
virtual int ShowDialog(Window &owner)
显示对话框,并指定所有者窗口
const Property< FolderDialogFlags > Flags
对话框标志
Definition FolderDialog.h:135
const Property< std::wstring > Description
对话框上方显示的描述性文本
Definition FolderDialog.h:140
virtual void Close() override
FolderBrowserDialog默认不支持该函数,调用该函数不会执行任何操作
BROWSEINFOW * GetBI()
获取BROWSEINFOW指针
wchar_t * GetBuffer()
获取指向缓冲区的指针
virtual void Show() override
FolderBrowserDialog默认不支持该函数,调用该函数不会执行任何操作
FolderBrowserDialog()
初始化FolderBrowserDialog
const Property< int > BufferSize
储存文件名的缓冲区大小,值不能小于MAX_PATH
Definition FolderDialog.h:130
对话框接口
Definition IDialog.h:11
值转换器接口
Definition IValueConverter.h:14
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
Definition Alignment.h:4
FolderDialogFlags
https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/ns-shlobj_core-browseinfoa
Definition FolderDialog.h:15
@ BrowseForComputer
Only return computers. If the user selects anything other than a computer, the OK button is grayed.
@ BrowseIncludeFiles
Version 4.71. The browse dialog box displays files as well as folders.
@ DontGoBelowDomain
Do not include network folders below the domain level in the dialog box's tree view control.
@ ReturnFileSystemAncestors
@ NoNewFolderButton
Version 6.0. Do not include the New Folder button in the browse dialog box.
@ ReturnOnlyFileSystemDirs