Use set_icon and set_title rather than SetWindowText. Should fix