mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
add opened files to the "recent documents" list
svn path=/trunk/; revision=8520
This commit is contained in:
parent
556bf3a4ef
commit
d39b5e77aa
4 changed files with 15 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
<tr>
|
||||
<td><address style="align: right;"><small>
|
||||
ROS Explorer Source Code Documentation
|
||||
<br>generated on 28.02.2004 by <a href="http://www.doxygen.org/index.html">
|
||||
<br>generated on 01.03.2004 by <a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
|
||||
</small></address>
|
||||
</td>
|
||||
|
|
|
@ -404,6 +404,9 @@ BOOL Entry::launch_entry(HWND hwnd, UINT nCmdShow)
|
|||
if (!get_path(cmd))
|
||||
return FALSE;
|
||||
|
||||
// add path to the recent file list
|
||||
SHAddToRecentDocs(SHARD_PATH, cmd);
|
||||
|
||||
// start program, open document...
|
||||
return launch_file(hwnd, cmd, nCmdShow);
|
||||
}
|
||||
|
|
|
@ -523,7 +523,14 @@ bool ShellBrowserChild::expand_folder(ShellDirectory* entry)
|
|||
}
|
||||
|
||||
|
||||
void ShellBrowserChild::jump_to(void* path)
|
||||
void ShellBrowserChild::jump_to(LPCTSTR path)
|
||||
{
|
||||
///@todo implement "file://", ... parsing
|
||||
jump_to(ShellPath(path));
|
||||
}
|
||||
|
||||
|
||||
void ShellBrowserChild::jump_to(LPCITEMIDLIST pidl)
|
||||
{
|
||||
|
||||
//@@
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue