Are you doing this in your WM_PAINT override?

Wayne