Basement framing doesn't exist in a vacuum ... You don't normally need to worry about door and window headers when building basement partition walls. If you're building a load-bearing wall ...
Check out our guide to waterproofing basement walls. After your waterproofing ... it may be best to “stick frame”— nailing one stud at a time instead of building the wall on the floor.