Well, I know that the happiness value doesn't change when you switch Pokemon in battle, but when you do trade a Pokemon, it's happiness resets to the default value (70 I think, I could be wrong) that Pokemon have when caught, unless by a Luxury Ball.

Hope that helps, mr_pikachu.