Sure, the explanation in reif proceeds as follows:
The quantum energy levels of a system Er depend on external parameters like Volume, Magnetic field, etc. Er(x1,x2,x3...) In a purely thermal interaction ( only heat is exchanged and work done is zero), these external parameters are not altered...