winapi: adjust window