hi all!
i use AnimateWindow in order to fade-in my dialogbox, u see:
invoke AnimateWindow, hWnd, 200, AW_BLEND + AW_ACTIVATE 

oh! i think my dialog seem cool. but i found the ctrls are not drawn well. how can i fix it?
Posted on 2006-04-17 23:44:57 by benny
Use RedrawWindow with RDW_ALLCHILDREN to redraw child windows after a call to AnimateWindow.
Posted on 2006-04-18 03:20:49 by k3Eahn
thank you!
Posted on 2006-04-18 04:04:58 by benny
BTW, InvalidateRect does this job too, unless parent window has the WS_CLIPCHILDREN style bit set.
Posted on 2006-04-18 08:27:02 by k3Eahn
yes, i had found on the forum with keyword 'AnimateWindow'. i use InvalidateRect after a call to AnimateWindow. see:

invoke AnimateWindow, hWnd, 1000, AW_BLEND + AW_ACTIVATE
invoke InvalidateRect, hWnd, 0, TRUE
Posted on 2006-04-18 23:37:40 by benny