getting window position with CMDOW