- fix build for MinGW and VC++ environments

- fix Manifest descriptions
- ignore some immediate files

svn path=/trunk/; revision=17951
This commit is contained in:
Martin Fuchs 2005-09-20 19:51:27 +00:00
parent 819d52f0da
commit d91a17bcbc
8 changed files with 31 additions and 22 deletions

View file

@ -451,6 +451,10 @@ SOURCE=".\explorer-sw.rc"
# End Source File
# Begin Source File
SOURCE=.\explorer.exe.manifest
# End Source File
# Begin Source File
SOURCE=.\res\explorer.ico
# End Source File
# Begin Source File

View file

@ -3,10 +3,10 @@
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="IrfanView"
name="ReactOS.Explorer"
type="win32"
/>
<description>Universal picture viewer</description>
<description>ROS Excplorer</description>
<dependency>
<dependentAssembly>
<assemblyIdentity

View file

@ -19,7 +19,3 @@ BEGIN
IDS_VERSION_STR REACTOS_STR_PRODUCT_VERSION
IDS_EXPLORER_VERSION_STR "ReactOS %s Explorer"
END
#define MANIFEST_RESOURCE_ID 1
MANIFEST_RESOURCE_ID RT_MANIFEST "explorer.exe.manifest"

View file

@ -100,6 +100,7 @@ BEGIN
"#endif\r\n"
"END\r\n"
"#endif\r\n"
"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST DISCARDABLE PURE ""explorer.exe.manifest""\r\n"
"\r\n"
"#include ""explorer-en.rc""\r\n"
"#include ""explorer-de.rc""\r\n"
@ -182,11 +183,11 @@ IDS_EXPLORER_VERSION_STR "ROS Explorer Ansi%0s"
#endif
END
#endif
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST DISCARDABLE PURE "explorer.exe.manifest"
#include "explorer-en.rc"
#include "explorer-de.rc"
#include "explorer-es.rc"
#include "explorer-fr.rc"
#include "explorer-sv.rc"
#include "explorer-pt.rc"
#include "explorer-cz.rc"

View file

@ -3,6 +3,7 @@
// Used by explorer_intres.rc
//
#define IDS_TITLE 1
#define MANIFEST_RESOURCE_ID 1
#define IDS_START 2
#define IDS_LOGOFF 3
#define IDS_SHUTDOWN 4

View file

@ -275,13 +275,17 @@ int DesktopBar::Notify(int id, NMHDR* pnmh)
{
if (pnmh->code == RBN_CHILDSIZE) {
/* align the task bands to the top, so it's in row with the Start button */
NMREBARCHILDSIZE *childSize = (NMREBARCHILDSIZE*)pnmh;
NMREBARCHILDSIZE* childSize = (NMREBARCHILDSIZE*)pnmh;
if (childSize->wID == IDW_TASKTOOLBAR) {
int cy = childSize->rcChild.top - childSize->rcBand.top;
if (cy) {
childSize->rcChild.bottom -= cy;
childSize->rcChild.top -= cy;
}
}
}
return 0;
}

View file

@ -118,8 +118,6 @@ HWND TaskBar::Create(HWND hwndParent)
LRESULT TaskBar::Init(LPCREATESTRUCT pcs)
{
TBMETRICS metrics;
if (super::Init(pcs))
return 1;
@ -135,13 +133,19 @@ LRESULT TaskBar::Init(LPCREATESTRUCT pcs)
//SetWindowFont(_htoolbar, GetStockFont(ANSI_VAR_FONT), FALSE);
//SendMessage(_htoolbar, TB_SETPADDING, 0, MAKELPARAM(8,8));
#ifndef __MINGW32__ // TBMETRICS missing in MinGW (as of 20.09.2005)
// set metrics for the Taskbar toolbar to enable button spacing
TBMETRICS metrics;
metrics.cbSize = sizeof(TBMETRICS);
metrics.dwMask = TBMF_BARPAD | TBMF_BUTTONSPACING;
metrics.cxBarPad = 0;
metrics.cyBarPad = 0;
metrics.cxButtonSpacing = 3;
metrics.cyButtonSpacing = 3;
SendMessage(_htoolbar, TB_SETMETRICS, 0, (LPARAM)&metrics);
#endif
_next_id = IDC_FIRST_APP;
@ -392,8 +396,7 @@ BOOL CALLBACK TaskBar::EnumWndProc(HWND hwnd, LPARAM lparam)
HICON hIcon = get_window_icon_small(hwnd);
BOOL delete_icon = FALSE;
if (!hIcon)
{
if (!hIcon) {
hIcon = LoadIcon(0, IDI_APPLICATION);
delete_icon = TRUE;
}