Author: dquintana
Date: Fri Jan 9 16:32:53 2015
New Revision: 66017
URL:
http://svn.reactos.org/svn/reactos?rev=66017&view=rev
Log:
Revert files that shouldn't have been included. I blame an ongoing headache for it.
Modified:
trunk/reactos/base/shell/explorer/trayntfy.cpp
trunk/reactos/base/shell/rshell/CMenuDeskBar.cpp
Modified: trunk/reactos/base/shell/explorer/trayntfy.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/traynt…
==============================================================================
--- trunk/reactos/base/shell/explorer/trayntfy.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/trayntfy.cpp [iso-8859-1] Fri Jan 9 16:32:53 2015
@@ -82,7 +82,7 @@
return -1;
}
- BOOL AddButton(IN CONST NOTIFYICONDATA *iconData)
+ VOID AddButton(IN CONST NOTIFYICONDATA *iconData)
{
TBBUTTON tbBtn;
NOTIFYICONDATA * notifyItem;
@@ -91,7 +91,8 @@
int index = FindItemByIconData(iconData, ¬ifyItem);
if (index >= 0)
{
- return UpdateButton(iconData);
+ UpdateButton(iconData);
+ return;
}
notifyItem = new NOTIFYICONDATA();
@@ -137,11 +138,9 @@
CToolbar::AddButton(&tbBtn);
SetButtonSize(ICON_SIZE, ICON_SIZE);
-
- return TRUE;
- }
-
- BOOL UpdateButton(IN CONST NOTIFYICONDATA *iconData)
+ }
+
+ VOID UpdateButton(IN CONST NOTIFYICONDATA *iconData)
{
NOTIFYICONDATA * notifyItem;
TBBUTTONINFO tbbi = { 0 };
@@ -149,7 +148,8 @@
int index = FindItemByIconData(iconData, ¬ifyItem);
if (index < 0)
{
- return AddButton(iconData);
+ AddButton(iconData);
+ return;
}
tbbi.cbSize = sizeof(tbbi);
@@ -197,17 +197,15 @@
/* TODO: support NIF_INFO, NIF_GUID, NIF_REALTIME, NIF_SHOWTIP */
SetButtonInfo(index, &tbbi);
-
- return TRUE;
- }
-
- BOOL RemoveButton(IN CONST NOTIFYICONDATA *iconData)
+ }
+
+ VOID RemoveButton(IN CONST NOTIFYICONDATA *iconData)
{
NOTIFYICONDATA * notifyItem;
int index = FindItemByIconData(iconData, ¬ifyItem);
if (index < 0)
- return FALSE;
+ return;
DeleteButton(index);
@@ -217,8 +215,6 @@
}
delete notifyItem;
-
- return TRUE;
}
VOID GetTooltipText(int index, LPTSTR szTip, DWORD cchTip)
@@ -436,11 +432,20 @@
switch (data->notify_code)
{
case NIM_ADD:
- return Toolbar.AddButton(iconData);
+ {
+ Toolbar.AddButton(iconData);
+ break;
+ }
case NIM_MODIFY:
- return Toolbar.UpdateButton(iconData);
+ {
+ Toolbar.UpdateButton(iconData);
+ break;
+ }
case NIM_DELETE:
- return Toolbar.RemoveButton(iconData);
+ {
+ Toolbar.RemoveButton(iconData);
+ break;
+ }
default:
TRACE("NotifyMessage received with unknown code %d.\n",
data->notify_code);
break;
Modified: trunk/reactos/base/shell/rshell/CMenuDeskBar.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/rshell/CMenuDes…
==============================================================================
--- trunk/reactos/base/shell/rshell/CMenuDeskBar.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/rshell/CMenuDeskBar.cpp [iso-8859-1] Fri Jan 9 16:32:53
2015
@@ -338,8 +338,6 @@
x = ppt->x + rc.left;
y = ppt->y + rc.top;
break;
- case MPPF_TOP:
- break;
case MPPF_TOP | MPPF_ALIGN_LEFT:
x = ppt->x - rc.right;
y = ppt->y + rc.top;