--- trunk/reactos/subsys/system/explorer/taskbar/traynotify.cpp 2005-01-10 19:44:47 UTC (rev 12919)
+++ trunk/reactos/subsys/system/explorer/taskbar/traynotify.cpp 2005-01-10 21:20:06 UTC (rev 12920)
@@ -635,9 +635,11 @@
UpdateWindow(_hwnd);
}
+#ifndef _NO_ALPHABLEND
#ifdef _MSC_VER
#pragma comment(lib, "msimg32") // for AlphaBlend()
#endif
+#endif
void NotifyArea::Paint()
{
@@ -664,11 +666,13 @@
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0}; // 50 % visible
for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) {
+#ifndef _NO_ALPHABLEND
if (it->_dwState & NIS_HIDDEN) {
FillRect(mem_dc, &rect, GetSysColorBrush(COLOR_BTNFACE));
DrawIconEx(mem_dc, 0, 0, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL);
AlphaBlend(canvas, x, y, NOTIFYICON_SIZE, NOTIFYICON_SIZE, mem_dc, 0, 0, NOTIFYICON_SIZE, NOTIFYICON_SIZE, blend);
} else
+#endif
DrawIconEx(canvas, x, y, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL);
x += NOTIFYICON_DIST;