Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit dd86a06

Browse files
committed
Merge pull request #255 from adobe/jeff/fix_fileopen_title
Fix Open Dialog Title
2 parents 11628ee + ea38c42 commit dd86a06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appshell/appshell_extensions_win.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ int32 ShowOpenDialog(bool allowMultipleSelection,
431431
IShellItem *shellItem = NULL;
432432
if (SUCCEEDED(SHCreateItemFromParsingName(initialDirectory.c_str(), 0, IID_IShellItem, reinterpret_cast<void**>(&shellItem))))
433433
pfd->SetFolder(shellItem);
434+
pfd->SetTitle(title.c_str());
434435
if (SUCCEEDED(pfd->Show(NULL))) {
435436
IShellItem *psi;
436437
if (SUCCEEDED(pfd->GetResult(&psi))) {
@@ -484,6 +485,7 @@ int32 ShowOpenDialog(bool allowMultipleSelection,
484485
ofn.lStructSize = sizeof(ofn);
485486
ofn.lpstrFile = szFile;
486487
ofn.nMaxFile = MAX_PATH;
488+
ofn.lpstrTitle = title.c_str();
487489

488490
// TODO (issue #65) - Use passed in file types. Note, when fileTypesStr is null, all files should be shown
489491
/* findAndReplaceString( fileTypesStr, std::string(" "), std::string(";*."));

0 commit comments

Comments
 (0)