added print last window to pwin2.cpp