diff --git a/reactos/subsys/system/explorer/explorer.dsp b/reactos/subsys/system/explorer/explorer.dsp
index 308159db97e..1b2254e76bd 100644
--- a/reactos/subsys/system/explorer/explorer.dsp
+++ b/reactos/subsys/system/explorer/explorer.dsp
@@ -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
diff --git a/reactos/subsys/system/explorer/explorer.exe.manifest b/reactos/subsys/system/explorer/explorer.exe.manifest
index 1790af0bf2d..9a4a3ef82e6 100644
--- a/reactos/subsys/system/explorer/explorer.exe.manifest
+++ b/reactos/subsys/system/explorer/explorer.exe.manifest
@@ -3,10 +3,10 @@
-Universal picture viewer
+ROS Excplorer
code == RBN_CHILDSIZE) {
- /* align the task bands to the top, so it's in row with the Start button */
- NMREBARCHILDSIZE *childSize = (NMREBARCHILDSIZE*)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;
+
if (childSize->wID == IDW_TASKTOOLBAR) {
int cy = childSize->rcChild.top - childSize->rcBand.top;
- childSize->rcChild.bottom -= cy;
- childSize->rcChild.top -= cy;
+
+ if (cy) {
+ childSize->rcChild.bottom -= cy;
+ childSize->rcChild.top -= cy;
+ }
}
}
diff --git a/reactos/subsys/system/explorer/taskbar/desktopbar.h b/reactos/subsys/system/explorer/taskbar/desktopbar.h
index d2cd1b158e5..92df4e68da6 100644
--- a/reactos/subsys/system/explorer/taskbar/desktopbar.h
+++ b/reactos/subsys/system/explorer/taskbar/desktopbar.h
@@ -31,7 +31,7 @@
#define DESKTOPBARBAR_HEIGHT (GetSystemMetrics(SM_CYSIZE) + 5 * GetSystemMetrics(SM_CYEDGE))
-#define REBARBAND_HEIGHT (GetSystemMetrics(SM_CYSIZE) + 2 * GetSystemMetrics(SM_CYEDGE))
+#define REBARBAND_HEIGHT (GetSystemMetrics(SM_CYSIZE) + 2 * GetSystemMetrics(SM_CYEDGE))
#define IDC_START 0x1000
diff --git a/reactos/subsys/system/explorer/taskbar/taskbar.cpp b/reactos/subsys/system/explorer/taskbar/taskbar.cpp
index 9bad2ca4f9f..10e000c0b70 100644
--- a/reactos/subsys/system/explorer/taskbar/taskbar.cpp
+++ b/reactos/subsys/system/explorer/taskbar/taskbar.cpp
@@ -29,7 +29,7 @@
#include
#include "taskbar.h"
-#include "traynotify.h" // for NOTIFYAREA_WIDTH_DEF
+#include "traynotify.h" // for NOTIFYAREA_WIDTH_DEF
DynamicFct g_SetTaskmanWindow(TEXT("user32"), "SetTaskmanWindow");
@@ -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;
}