From 982fa9948827dcebc2b48c601390c25df13bac68 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 3 Mar 2004 20:29:52 +0000 Subject: [PATCH] add opened files to the "recent documents" list svn path=/branches/lean-explorer/; revision=8522 --- reactos/subsys/system/explorer/shell/entries.cpp | 5 ++++- reactos/subsys/system/explorer/shell/shellfs.cpp | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/explorer/shell/entries.cpp b/reactos/subsys/system/explorer/shell/entries.cpp index dcf89d8bf56..eda33e3cb8a 100644 --- a/reactos/subsys/system/explorer/shell/entries.cpp +++ b/reactos/subsys/system/explorer/shell/entries.cpp @@ -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); } diff --git a/reactos/subsys/system/explorer/shell/shellfs.cpp b/reactos/subsys/system/explorer/shell/shellfs.cpp index 8e4b7070c19..a9a953fccfd 100644 --- a/reactos/subsys/system/explorer/shell/shellfs.cpp +++ b/reactos/subsys/system/explorer/shell/shellfs.cpp @@ -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)) {