fix folderbox init_path
fix folderbox init_path
This commit is contained in:
parent
b6028f8079
commit
905c583621
@ -1257,7 +1257,7 @@ namespace nana
|
||||
IShellItem *init_path{ nullptr };
|
||||
hr = SHCreateItemFromParsingName(impl_->init_path.wstring().c_str(), nullptr, IID_PPV_ARGS(&init_path));
|
||||
if (SUCCEEDED(hr))
|
||||
fd->SetDefaultFolder(init_path);
|
||||
fd->SetFolder(init_path);
|
||||
|
||||
fd->SetOptions(FOS_PICKFOLDERS);
|
||||
fd->Show(reinterpret_cast<HWND>(API::root(impl_->owner))); // the native handle of the parent nana form goes here
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user