Moving and painting

Hi,

How can I ensure that after I have sized or moved a window that the whole client rectangle is repainted completely?

Thx

FC.
If you put all drawing code in a WM_PAINT handler, you don't need to worry about it - Windows will automatically send a WM_PAINT message to the window when any part of it becomes invalid, and will even inform you of the coordinates of the invalid rectangle through the RECT object contained within the PAINTSTRUCT output parameter. That is what happens if you follow the rules. But I fear you either are not following the rules, or are a game programmer, which amounts to the same thing, or you wouldn't have asked this question.
Topic archived. No new replies allowed.