Thanks for that, I'll try that if I do something as stupid in the future.
Looking at the values something weird must have happened to the Y values. The new WndTopY is 200 with WndBottomY ones being 967, but before the WndTopY and WndBottomY ones where 0xfffffcc4 (4294966468) and ffffff8a...