What is this calling?

Code:
inst->Paint(inst->hwnd,hdcimage);
is it generating another WM_PAINT message?

if so, that could be the problem.

-