In an incompressible fluid in a gravitational field, the pressure at specific point in the fluid depends on the gravitational field strength, $g$ (some call this acceleration due to gravity, unfortunately), the density of the the fluid, $\rho$, and the depth (in the direction of the grav. field $\vec{g}$) of the point, $D$, plus whatever the pressure is at the top of the fluid.
To emphasize the concepts: The pressure in the fluid is a scaler value at a point and has the same value for a specific depth, no matter the lateral (horizontal) location. Force acting on some area, caused by this pressure, is the product of pressure and area and is directed perpendicular to area being analyzed.
For your diagram, the absolute pressure at a depth $h_o$ from the top of the liquid (at the bottom of the block is
$$Pb=P_{atm}+\rho g h_o .$$
In many cases the atmospheric pressure can be ignored because pressure difference is often the quantity which drives the behavior of the system. Also notice that the pressure across the bottom of the block is the same at every point in the fluid at the same depth as the bottom. In similar fashion, the pressure across the top of the block and at every point at the same depth as the top is
$$P_t=P_{atm}+\rho g (h_o-h) .$$
So the you see that $P_{atm}$ disappears and the presssure difference between the bottom and top of the block is $\Delta P = \rho g h$.
Buoyant force is a different conversation. While the result is rather simple, the proof does involve this pressure difference, which is independent of the actual depth of the block.
Summary - Pressure in the fluid depends on $h_o$. Pressure difference across a block of height $h$ depends on $h$, but not on $h_o$.