In both conditions the pressure is treated as constant. If you examine the partial derivatives you will see this more clearly.
dH = dq + dw + d(PV)
dH = dq + dw + P(dV)
P + V(dP)
VYou can see that the condition for the P(dV) term in the partial derivative to begin with is for the pressure to be kept constant momentarily for each infinitesmal change in V. The term that deals with changes in pressure dP is then cancelled by the next condition. It is just mathematical formalism. The main idea is that under conditions of constant pressure (such as doing a reaction that is open to the atmosphere at atmospheric pressure) where only pressure volume work is allowed, dH is equal to dq. My favorite derivation of dH arises from the first law and may prove useful to you:
1st law:
dU = dq + dw
Assume pV work only at constant P such that dw = -PdV; then:
dU = dq - PdV
dU + PdV = dq
Define dH = dU + PdV, then:
dH = dq
Sloppy in some respects, but I still remember it and that says something