called SetWindowTitleAndIcon for window setting