removed unnecessary calls to SetWindowPos when entering and leaving