It's shown as single rect with background and image on it.
According to SetWindowRgn on msdn:
Quote
If you do, you are left with lost regions on the screen that never repaint and never go away. To resolve this, call SetWindowRgn(NULL) before calling SetWindowPos, and then call SetWindowRgn again with the new region.
method void CTaskbarNotifier::OnTimer(UINT_PTR nIDEvent) has two calls of SetWindowPos.
here code before for each call SetWindowPos
SetWindowPos(...);
and after:
HRGN hRgn = CreateRectRgn(0,0,0,0); GetWindowRgn(hRgn); SetWindowPos(...); VERIFY( SetWindowRgn(hRgn, TRUE) != 0 );
coping rgn done because of windows dose not applies same region twice on window.










Sign In
Register
