diff --git a/reactos/subsys/system/explorer/taskbar/traynotify.cpp b/reactos/subsys/system/explorer/taskbar/traynotify.cpp index 07c0491cc01..e8f35554523 100644 --- a/reactos/subsys/system/explorer/taskbar/traynotify.cpp +++ b/reactos/subsys/system/explorer/taskbar/traynotify.cpp @@ -635,9 +635,11 @@ void NotifyArea::UpdateIcons() UpdateWindow(_hwnd); } +#ifndef _NO_ALPHABLEND #ifdef _MSC_VER #pragma comment(lib, "msimg32") // for AlphaBlend() #endif +#endif void NotifyArea::Paint() { @@ -664,11 +666,13 @@ void NotifyArea::Paint() 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;