Balancing a P-40 with the gear up would require making support stands to set on the scales. You can zero out the weight of the supports before setting the plane on them. You would still need to have the plane level and you would use the distance from the support stands to the reference point for your calculations.