why use InvalidateRect function follow the ValidateRect function ?
all help is appreciated! Thank you all in advance!
> why use InvalidateRect function follow the ValidateRect function ?
ValidateRect() clears out any previous client area that was marked for
drawing, and then InvalidateRect() specifies the new client area that needs
drawing.
> all help is appreciated!
Have you read the documentation for those functions yet?
Gambit
i guess his question is that if there was an invalid area, how is it that
you've magically determined that it's no longer invalid?
And if you know that the new invalid rect covers any existing invalid area,
you can still let Windows do its job, and just add to the invalid rectangle.
Either way, there's no need to "clear" the old invalid rectangle.