mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
_NO_ALPHABLEND compiler switch
svn path=/trunk/; revision=12920
This commit is contained in:
parent
c1746abda0
commit
2ab1b0f2e1
|
@ -635,9 +635,11 @@ void NotifyArea::UpdateIcons()
|
||||||
UpdateWindow(_hwnd);
|
UpdateWindow(_hwnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _NO_ALPHABLEND
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma comment(lib, "msimg32") // for AlphaBlend()
|
#pragma comment(lib, "msimg32") // for AlphaBlend()
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void NotifyArea::Paint()
|
void NotifyArea::Paint()
|
||||||
{
|
{
|
||||||
|
@ -664,11 +666,13 @@ void NotifyArea::Paint()
|
||||||
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0}; // 50 % visible
|
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0}; // 50 % visible
|
||||||
|
|
||||||
for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) {
|
for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) {
|
||||||
|
#ifndef _NO_ALPHABLEND
|
||||||
if (it->_dwState & NIS_HIDDEN) {
|
if (it->_dwState & NIS_HIDDEN) {
|
||||||
FillRect(mem_dc, &rect, GetSysColorBrush(COLOR_BTNFACE));
|
FillRect(mem_dc, &rect, GetSysColorBrush(COLOR_BTNFACE));
|
||||||
DrawIconEx(mem_dc, 0, 0, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL);
|
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);
|
AlphaBlend(canvas, x, y, NOTIFYICON_SIZE, NOTIFYICON_SIZE, mem_dc, 0, 0, NOTIFYICON_SIZE, NOTIFYICON_SIZE, blend);
|
||||||
} else
|
} else
|
||||||
|
#endif
|
||||||
DrawIconEx(canvas, x, y, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL);
|
DrawIconEx(canvas, x, y, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL);
|
||||||
|
|
||||||
x += NOTIFYICON_DIST;
|
x += NOTIFYICON_DIST;
|
||||||
|
|
Loading…
Reference in a new issue