Permalink
Browse files

Merge pull request #255 from adobe/jeff/fix_fileopen_title

Fix Open Dialog Title
  • Loading branch information...
2 parents 11628ee + ea38c42 commit dd86a06fab4a2a896f7bf28dc666959961369cf4 @redmunds redmunds committed Jun 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 appshell/appshell_extensions_win.cpp
@@ -431,6 +431,7 @@ int32 ShowOpenDialog(bool allowMultipleSelection,
IShellItem *shellItem = NULL;
if (SUCCEEDED(SHCreateItemFromParsingName(initialDirectory.c_str(), 0, IID_IShellItem, reinterpret_cast<void**>(&shellItem))))
pfd->SetFolder(shellItem);
+ pfd->SetTitle(title.c_str());
if (SUCCEEDED(pfd->Show(NULL))) {
IShellItem *psi;
if (SUCCEEDED(pfd->GetResult(&psi))) {
@@ -484,6 +485,7 @@ int32 ShowOpenDialog(bool allowMultipleSelection,
ofn.lStructSize = sizeof(ofn);
ofn.lpstrFile = szFile;
ofn.nMaxFile = MAX_PATH;
+ ofn.lpstrTitle = title.c_str();
// TODO (issue #65) - Use passed in file types. Note, when fileTypesStr is null, all files should be shown
/* findAndReplaceString( fileTypesStr, std::string(" "), std::string(";*."));

0 comments on commit dd86a06

Please sign in to comment.