mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:12:57 +00:00
add the new icons to the project file
svn path=/trunk/; revision=20847
This commit is contained in:
parent
fde02cbbc1
commit
3b78324482
7 changed files with 76 additions and 14 deletions
|
@ -478,9 +478,9 @@ const Icon& IconCache::extract(LPCTSTR path, ICONCACHE_FLAGS flags)
|
||||||
return _icons[ICID_NONE];
|
return _icons[ICID_NONE];
|
||||||
}
|
}
|
||||||
|
|
||||||
const Icon& IconCache::extract(LPCTSTR path, int idx, ICONCACHE_FLAGS flags)
|
const Icon& IconCache::extract(LPCTSTR path, int icon_idx, ICONCACHE_FLAGS flags)
|
||||||
{
|
{
|
||||||
IdxCacheKey key(path, make_pair(idx, (flags|ICF_HICON)&~ICF_SYSCACHE));
|
IdxCacheKey key(path, make_pair(icon_idx, (flags|ICF_HICON)&~ICF_SYSCACHE));
|
||||||
|
|
||||||
key.first.toLower();
|
key.first.toLower();
|
||||||
|
|
||||||
|
@ -491,7 +491,7 @@ const Icon& IconCache::extract(LPCTSTR path, int idx, ICONCACHE_FLAGS flags)
|
||||||
|
|
||||||
HICON hIcon;
|
HICON hIcon;
|
||||||
|
|
||||||
if ((int)ExtractIconEx(path, idx, NULL, &hIcon, 1) > 0) {
|
if ((int)ExtractIconEx(path, icon_idx, NULL, &hIcon, 1) > 0) {
|
||||||
const Icon& icon = add(hIcon, IT_CACHED);
|
const Icon& icon = add(hIcon, IT_CACHED);
|
||||||
|
|
||||||
_idxCache[key] = icon;
|
_idxCache[key] = icon;
|
||||||
|
@ -505,13 +505,13 @@ const Icon& IconCache::extract(LPCTSTR path, int idx, ICONCACHE_FLAGS flags)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Icon& IconCache::extract(IExtractIcon* pExtract, LPCTSTR path, int idx, ICONCACHE_FLAGS flags)
|
const Icon& IconCache::extract(IExtractIcon* pExtract, LPCTSTR path, int icon_idx, ICONCACHE_FLAGS flags)
|
||||||
{
|
{
|
||||||
HICON hIconLarge = 0;
|
HICON hIconLarge = 0;
|
||||||
HICON hIcon;
|
HICON hIcon;
|
||||||
|
|
||||||
bool large_icons = flags & ICF_LARGE;
|
bool large_icons = flags & ICF_LARGE;
|
||||||
HRESULT hr = pExtract->Extract(path, idx, &hIconLarge, &hIcon, MAKELONG(GetSystemMetrics(SM_CXICON), ICON_SIZE_X));
|
HRESULT hr = pExtract->Extract(path, icon_idx, &hIconLarge, &hIcon, MAKELONG(GetSystemMetrics(SM_CXICON), ICON_SIZE_X));
|
||||||
|
|
||||||
if (hr == NOERROR) { //@@ oder SUCCEEDED(hr) ?
|
if (hr == NOERROR) { //@@ oder SUCCEEDED(hr) ?
|
||||||
if (large_icons) { //@@ OK?
|
if (large_icons) { //@@ OK?
|
||||||
|
|
|
@ -320,6 +320,10 @@ SOURCE=.\res\action.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\res\administration.ico
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\res\appicon.ico
|
SOURCE=.\res\appicon.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -352,6 +356,14 @@ SOURCE=.\res\config.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=".\res\control-panel.ico"
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=".\res\desktop-settings.ico"
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\res\documents.ico
|
SOURCE=.\res\documents.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -432,6 +444,11 @@ SOURCE=".\explorer-sv.rc"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=".\explorer-uk.rc"
|
||||||
|
# PROP Exclude_From_Build 1
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\explorer.exe.manifest
|
SOURCE=.\explorer.exe.manifest
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -532,6 +549,10 @@ SOURCE=.\res\minimize.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=".\res\network-conns.ico"
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\res\network.ico
|
SOURCE=.\res\network.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -552,6 +573,10 @@ SOURCE=.\res\reactos.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=".\res\recent-documents.ico"
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\resource.h
|
SOURCE=.\resource.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -572,6 +597,10 @@ SOURCE=.\res\search.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\res\shutdown.ico
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\res\speaker.ico
|
SOURCE=.\res\speaker.ico
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
|
@ -1087,6 +1087,10 @@
|
||||||
RelativePath="res\action.ico"
|
RelativePath="res\action.ico"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\administration.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="res\appicon.ico"
|
RelativePath="res\appicon.ico"
|
||||||
>
|
>
|
||||||
|
@ -1119,6 +1123,14 @@
|
||||||
RelativePath="res\config.ico"
|
RelativePath="res\config.ico"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\control-panel.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\desktop-settings.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="res\documents.ico"
|
RelativePath="res\documents.ico"
|
||||||
>
|
>
|
||||||
|
@ -1957,6 +1969,14 @@
|
||||||
RelativePath="res\mdi.bmp"
|
RelativePath="res\mdi.bmp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\minimize.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\network-conns.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="res\network.ico"
|
RelativePath="res\network.ico"
|
||||||
>
|
>
|
||||||
|
@ -1977,6 +1997,10 @@
|
||||||
RelativePath="res\reactos.ico"
|
RelativePath="res\reactos.ico"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\recent-documents.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="resource.h"
|
RelativePath="resource.h"
|
||||||
>
|
>
|
||||||
|
@ -1997,6 +2021,10 @@
|
||||||
RelativePath="res\search.ico"
|
RelativePath="res\search.ico"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\shutdown.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="res\speaker.ico"
|
RelativePath="res\speaker.ico"
|
||||||
>
|
>
|
||||||
|
@ -2009,6 +2037,10 @@
|
||||||
RelativePath="res\toolbar.bmp"
|
RelativePath="res\toolbar.bmp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\res\winefile.ico"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="taskbar"
|
Name="taskbar"
|
||||||
|
|
|
@ -102,7 +102,7 @@ BEGIN
|
||||||
"#endif\r\n"
|
"#endif\r\n"
|
||||||
"END\r\n"
|
"END\r\n"
|
||||||
"#endif\r\n"
|
"#endif\r\n"
|
||||||
"#ifndef _DEBUG\r\n"
|
"#ifndef _DEBUG\r\n"
|
||||||
"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST DISCARDABLE PURE ""explorer.exe.manifest""\r\n"
|
"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST DISCARDABLE PURE ""explorer.exe.manifest""\r\n"
|
||||||
"#endif\r\n"
|
"#endif\r\n"
|
||||||
"\r\n"
|
"\r\n"
|
||||||
|
@ -165,13 +165,12 @@ IDI_ARROW_UP ICON DISCARDABLE "res/arrow_up.ico"
|
||||||
IDI_ARROW_DOWN ICON DISCARDABLE "res/arrow_dwn.ico"
|
IDI_ARROW_DOWN ICON DISCARDABLE "res/arrow_dwn.ico"
|
||||||
IDI_NOTIFY_L ICON DISCARDABLE "res/notify_l.ico"
|
IDI_NOTIFY_L ICON DISCARDABLE "res/notify_l.ico"
|
||||||
IDI_NOTIFY_R ICON DISCARDABLE "res/notify_r.ico"
|
IDI_NOTIFY_R ICON DISCARDABLE "res/notify_r.ico"
|
||||||
IDI_MINIMIZE ICON DISCARDABLE "res/minimize.ico"
|
IDI_MINIMIZE ICON DISCARDABLE "res/minimize.ico"
|
||||||
IDI_CONTROLPAN ICON DISCARDABLE "res/control-panel.ico"
|
IDI_CONTROLPAN ICON DISCARDABLE "res/control-panel.ico"
|
||||||
IDI_DESKSETTING ICON DISCARDABLE "res/desktop-settings.ico"
|
IDI_DESKSETTING ICON DISCARDABLE "res/desktop-settings.ico"
|
||||||
IDI_NETCONNS ICON DISCARDABLE "res/network-conns.ico"
|
IDI_NETCONNS ICON DISCARDABLE "res/network-conns.ico"
|
||||||
IDI_ADMINISTRATION ICON DISCARDABLE "res/administration.ico"
|
IDI_ADMINISTRATION ICON DISCARDABLE "res/administration.ico"
|
||||||
IDI_RECENT ICON DISCARDABLE "res/recent-documents.ico"
|
IDI_RECENT ICON DISCARDABLE "res/recent-documents.ico"
|
||||||
|
|
||||||
#endif // Neutral resources
|
#endif // Neutral resources
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
|
@ -127,8 +127,8 @@ struct IconCache {
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
const Icon& extract(LPCTSTR path, ICONCACHE_FLAGS flags=ICF_NORMAL);
|
const Icon& extract(LPCTSTR path, ICONCACHE_FLAGS flags=ICF_NORMAL);
|
||||||
const Icon& extract(LPCTSTR path, int idx, ICONCACHE_FLAGS flags=ICF_HICON);
|
const Icon& extract(LPCTSTR path, int icon_idx, ICONCACHE_FLAGS flags=ICF_HICON);
|
||||||
const Icon& extract(IExtractIcon* pExtract, LPCTSTR path, int idx, ICONCACHE_FLAGS flags=ICF_HICON);
|
const Icon& extract(IExtractIcon* pExtract, LPCTSTR path, int icon_idx, ICONCACHE_FLAGS flags=ICF_HICON);
|
||||||
|
|
||||||
const Icon& add(HICON hIcon, ICON_TYPE type=IT_DYNAMIC);
|
const Icon& add(HICON hIcon, ICON_TYPE type=IT_DYNAMIC);
|
||||||
const Icon& add(int sys_idx/*, ICON_TYPE type=IT_SYSCACHE*/);
|
const Icon& add(int sys_idx/*, ICON_TYPE type=IT_SYSCACHE*/);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//{{NO_DEPENDENCIES}}
|
//{{NO_DEPENDENCIES}}
|
||||||
// Microsoft Developer Studio generated include file.
|
// Microsoft Developer Studio generated include file.
|
||||||
// Used by explorer-hu.rc
|
// Used by explorer_intres.rc
|
||||||
//
|
//
|
||||||
#define IDS_TITLE 1
|
#define IDS_TITLE 1
|
||||||
#define MANIFEST_RESOURCE_ID 1
|
#define MANIFEST_RESOURCE_ID 1
|
||||||
|
|
|
@ -293,7 +293,6 @@ void ShellBrowser::OnTreeItemExpanding(int idCtrl, LPNMTREEVIEW pnmtv)
|
||||||
|
|
||||||
int ShellBrowser::InsertSubitems(HTREEITEM hParentItem, Entry* entry, IShellFolder* pParentFolder)
|
int ShellBrowser::InsertSubitems(HTREEITEM hParentItem, Entry* entry, IShellFolder* pParentFolder)
|
||||||
{
|
{
|
||||||
HTREEITEM hchild, hnext;
|
|
||||||
CONTEXT("ShellBrowser::InsertSubitems()");
|
CONTEXT("ShellBrowser::InsertSubitems()");
|
||||||
|
|
||||||
WaitCursor wait;
|
WaitCursor wait;
|
||||||
|
@ -309,8 +308,11 @@ int ShellBrowser::InsertSubitems(HTREEITEM hParentItem, Entry* entry, IShellFold
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove old children items
|
// remove old children items
|
||||||
hnext = hchild = TreeView_GetChild(_left_hwnd, hParentItem);
|
HTREEITEM hchild, hnext;
|
||||||
while((hchild=hnext) != NULL) {
|
|
||||||
|
hnext = TreeView_GetChild(_left_hwnd, hParentItem);
|
||||||
|
|
||||||
|
while((hchild=hnext) != 0) {
|
||||||
hnext = TreeView_GetNextSibling(_left_hwnd, hchild);
|
hnext = TreeView_GetNextSibling(_left_hwnd, hchild);
|
||||||
TreeView_DeleteItem(_left_hwnd, hchild);
|
TreeView_DeleteItem(_left_hwnd, hchild);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue