mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
add opened files to the "recent documents" list
svn path=/branches/lean-explorer/; revision=8522
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user