_NO_ALPHABLEND compiler switch

svn path=/trunk/; revision=12920
This commit is contained in:
Martin Fuchs 2005-01-10 21:20:06 +00:00
parent c1746abda0
commit 2ab1b0f2e1

View file

@ -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;