Em Dom 07 Dez 2003 07:01, Andreas Mohr escreveu:
Hi,
On Sun, Dec 07, 2003 at 03:51:01AM -0300, Marcelo Duarte wrote:
This patch caused a regression in Winamp 2.91, and the top window is not repainted.
Maybe (just *maybe*) the patch is actually very correct, but Winamp for some reason collects some more "dirty" data that just happens to be committed to screen by this random unrelated WM_PAINT message...
Yes, you are correct. I made more some tests, also removing all and part of the code, and finished discovering that this patch is not the cause. This patch only made me to see that the problem existed.
In other words: the dirty graphics area in Winamp should have been painted by some other Windows function already which is responsible for these graphics changes in Winamp. Since this seems to not get done, it appears that the superfluous WM_PAINT is necessary to clean their act up after the fact.
Thus the actual challenge would probably be to find the place where we should have issued the REAL WM_PAINT by one way or another, in order to make Winamp happy again...
Yes, but nor I know for where to start and still has the problem of the heading not to appear if he will not be in desktop mode....