Attempt to tidy up cursor printing on progressbar and other windows