Controlling the Electronic Structures and Properties of in-Plane Transition-Metal Dichalcogenides Quantum Wells