mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
create quicklaunch dir it it does not already exist
svn path=/trunk/; revision=7505
This commit is contained in:
parent
f6f1650b2b
commit
18f935cbb8
4 changed files with 4 additions and 3 deletions
|
@ -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 04.01.2004 by <a href="http://www.doxygen.org/index.html">
|
<br>generated on 06.01.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>
|
||||||
|
|
|
@ -112,7 +112,7 @@ void ShellBrowserChild::InitializeTree()
|
||||||
TreeView_SetImageList(_left_hwnd, _himlSmall, TVSIL_NORMAL);
|
TreeView_SetImageList(_left_hwnd, _himlSmall, TVSIL_NORMAL);
|
||||||
TreeView_SetScrollTime(_left_hwnd, 100);
|
TreeView_SetScrollTime(_left_hwnd, 100);
|
||||||
|
|
||||||
const String& root_name = Desktop().get_name(_create_info._root_shell_path);
|
const String& root_name = Desktop().get_name(_create_info._root_shell_path, SHGDN_FORPARSING);
|
||||||
|
|
||||||
_root._drive_type = DRIVE_UNKNOWN;
|
_root._drive_type = DRIVE_UNKNOWN;
|
||||||
lstrcpy(_root._volname, root_name); // most of the time "Desktop"
|
lstrcpy(_root._volname, root_name); // most of the time "Desktop"
|
||||||
|
|
|
@ -57,7 +57,7 @@ struct ShellDirectory : public ShellEntry, public Directory
|
||||||
{
|
{
|
||||||
CONTEXT("ShellDirectory::ShellDirectory()");
|
CONTEXT("ShellDirectory::ShellDirectory()");
|
||||||
|
|
||||||
lstrcpy(_data.cFileName, root_folder.get_name(shell_path));
|
lstrcpy(_data.cFileName, root_folder.get_name(shell_path, SHGDN_FORPARSING));
|
||||||
_data.dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY;
|
_data.dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY;
|
||||||
_shell_attribs = SFGAO_FOLDER;
|
_shell_attribs = SFGAO_FOLDER;
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,7 @@ void QuickLaunchBar::AddShortcuts()
|
||||||
|
|
||||||
_stprintf(path, TEXT("%s\\")QUICKLAUNCH_FOLDER, (LPCTSTR)app_data);
|
_stprintf(path, TEXT("%s\\")QUICKLAUNCH_FOLDER, (LPCTSTR)app_data);
|
||||||
|
|
||||||
|
CreateDirectory(path, NULL);
|
||||||
_dir = new ShellDirectory(Desktop(), path, _hwnd);
|
_dir = new ShellDirectory(Desktop(), path, _hwnd);
|
||||||
|
|
||||||
_dir->smart_scan(SCAN_EXTRACT_ICONS|SCAN_FILESYSTEM);
|
_dir->smart_scan(SCAN_EXTRACT_ICONS|SCAN_FILESYSTEM);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue