Underwear maker HanesBrands Inc is to buy European lingerie leader DBApparel - owner of the DIM, Playtex, Wonderbra and Shock Absorber brands - in a EUR400m (US$545m) deal.