I also use docks as a replacement for my taskbar.
I have two docks on the bottom edge (one right, one left) with two other overlapping docks at the bottoms of the left and right edges. In the bottom left corner is a SysStats Digital Clock. I want windows to maximize on their bottom edges to the top edge of this clock.
I use the Reduce Workarea setting in DesktopX Builder.
Reach the setting by:
1. Right click DX Builder icon in system tray;
2. Left click Configure DesktopX Builder;
3. Left click Desktop tab;
4. Left click Workarea button (down toward bottom);
5. Check Reduce Workarea check box;
6. Put a number in one of the four boxes to reduce the size of the Workarea by that many units (pixels?);
7. Left click Close, then OK.
As it turns out, I reduce my bottom side by 42. The windows just touch the top edge of the clock. The settings are precise. And it is very easy to experiment with the settings.