A windrower with a harvesting header with a crop cutting assembly for severing crop from the ground windrower has a header pitch sensor for measuring a fore/aft pitch angle and a hydraulic system. The hydraulic system moves the header between an operating height and a raised position, and also controls a fore/aft pitch angle. An electronics control module provides an output to activate solenoid valves in the hydraulic system to move the header between the operating height and the raised position and to select a desired pitch angle. When the header moves from the operating height to the raised position, the electronics control module operates the header hydraulic system to move the header to the zero-tilt condition, and upon lowering the header back the operating height, the electronics control module automatically returns the header to the selected pitch angle it was in at the start of the cycle.