We investigate theoretically the spin-dependent transport properties of electrons in realistic magnetic-electric-barrier (MEB) nanostructures produced by the deposition, onto a heterostructure, of a metallic ferromagnetic stripe. We find the degree of electron-spin polarization to be closely tied to the voltage applied to the stripe, despite the fact that this voltage in itself induces no spin-polarization effect. As a positive (negative) voltage is applied, the electron-spin polarization shifts in the low- (high-) energy direction and increases (decreases). Our results imply that the degree of electron-spin polarization can be tuned through the applied voltage. This implication might prove useful in the design and application of spintronic devices based on magnetic-barrier nanostructures. PACS Nos.: 73.40.Gk, 73.23.-b, 75.70.Cn