VBoxManage modifyhd "/Users/xxx/VBox VMs/Windows/Windows 7.vdi" --resize 32000
After that one has to use a partitioning tool in the VirtualBox Guest to adjust the main partition to fill the drive.
For more information see: https://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi