add opened files to the "recent documents" list

svn path=/branches/lean-explorer/; revision=8522
This commit is contained in:
Martin Fuchs
2004-03-03 20:29:52 +00:00
parent 2436649677
commit 982fa99488
2 changed files with 7 additions and 1 deletions
@@ -404,7 +404,10 @@ BOOL Entry::launch_entry(HWND hwnd, UINT nCmdShow)
if (!get_path(cmd))
return FALSE;
// start program, open document...
// add path to the recent file list
SHAddToRecentDocs(SHARD_PATH, cmd);
// start program, open document...
return launch_file(hwnd, cmd, nCmdShow);
}
@@ -190,6 +190,9 @@ BOOL ShellEntry::launch_entry(HWND hwnd, UINT nCmdShow)
ShellPath shell_path = create_absolute_pidl();
shexinfo.lpIDList = &*shell_path;
// add PIDL to the recent file list
SHAddToRecentDocs(SHARD_PIDL, shexinfo.lpIDList);
BOOL ret = TRUE;
if (!ShellExecuteEx(&shexinfo)) {