add opened files to the "recent documents" list

svn path=/trunk/; revision=8520
This commit is contained in:
Martin Fuchs 2004-03-03 20:29:51 +00:00
parent 556bf3a4ef
commit d39b5e77aa
4 changed files with 15 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<tr> <tr>
<td><address style="align: right;"><small> <td><address style="align: right;"><small>
ROS Explorer Source Code Documentation 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> <img src="doxygen.png" alt="doxygen" align="middle" border=0>
</small></address> </small></address>
</td> </td>

View file

@ -404,6 +404,9 @@ BOOL Entry::launch_entry(HWND hwnd, UINT nCmdShow)
if (!get_path(cmd)) if (!get_path(cmd))
return FALSE; return FALSE;
// add path to the recent file list
SHAddToRecentDocs(SHARD_PATH, cmd);
// start program, open document... // start program, open document...
return launch_file(hwnd, cmd, nCmdShow); return launch_file(hwnd, cmd, nCmdShow);
} }

View file

@ -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)
{ {
//@@ //@@

View file

@ -190,6 +190,9 @@ BOOL ShellEntry::launch_entry(HWND hwnd, UINT nCmdShow)
ShellPath shell_path = create_absolute_pidl(); ShellPath shell_path = create_absolute_pidl();
shexinfo.lpIDList = &*shell_path; shexinfo.lpIDList = &*shell_path;
// add PIDL to the recent file list
SHAddToRecentDocs(SHARD_PIDL, shexinfo.lpIDList);
BOOL ret = TRUE; BOOL ret = TRUE;
if (!ShellExecuteEx(&shexinfo)) { if (!ShellExecuteEx(&shexinfo)) {